Question

See Question.pdf

Solution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

%% Problem 3
%% Part A
for tau=1:3
    N=100;
    h=tau/N;

    initial_data=ones(1,N);

    alpha=0;

    x=initial_data;
    for k=N+1:2000
       X=x(k-N);
       if X > 0
            P=-1;
       else
            P=1;
       end
       x(k)=x(k-1)+h*P;
    end
    t=h*[1:length(x)]-tau;
    figure
    plot(t,x)
    xlabel('t')...

This is only a preview of the solution. Please use the purchase button to see the entire solution

$50.00

or free if you
register a new account!

Assisting Tutor

Related Homework Solutions

Get help from a qualified tutor
Live Chats