Completely Solved C, C++ Programs Assignment.




Plot a unit step at t=2 and going to right.(Using Matlab)

Filed Under:

Problem Definition
Plot a unit step at t=2 and going to right.

Programming:
x=1
for i=1 : 1000
t(i)=i*0.01;
if t(i)<2
u(x)=2;
else
u(x)=1
end
x=x+1;
end
plot(t,u);
hold
plot(0,2);


Get Free Programming Tutorials and Solved assignments