3) Superimposing two plots for comparison (N.B.- Problem 1 & 2)
Solution:
y=exp(-n/10);
plot(n,y,'+');
hold on
plot(n,x,'o');
hold off
Write this on your MATLAB software and then you will see the graph.
4) To generate a complex valued exponential sequence
Solution:
x=exp((2+3j)*n);
subplot(2,2,1)
plot(n,real(x),'o');
subplot(2,2,2);
plot(n,imag(x),'o');
subplot(2,2,3);
plot(n,abs(x),'o');
Write this on your MATLAB software and then you will see the graph.
0 comments:
Post a Comment