See Question.pdf

**Subject Mathematics Differential Equations**

See Question.pdf

%% 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')...

%% 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

Mathematics - Differential Equations for Engineers

$23.00

Nonhomogeneous

Differential

Equations

Forced

Oscillations

Resonance

Mathematics

Population Growth Model

$23.00

Mathematics

Population

Number

Differential

Equation

Logistic

Equation

Population

Growth

Mathematics - Differential Equations for Engineers

$5.00

Differential Equations of Second Order with Constant Coefficients

Mathematics

Differential Equations

Pre-Calculus Problem

$3.00

Pre-Calculus

Complex Numbers

Complex Roots

Polynomials

Degree of a Polynomial

Zeros of a Polynomial