clc; t=0:0.01:1; f=1; x=sin(2*pi*f*t); figure(1); plot(t,x);
fs1=2*f; n=-1:0.1:1; y1=sin(2*pi*n*f/fs1); figure(2); stem(n,y1);
fs2=1.2*f; n=-1:0.1:1; y2=sin(2*pi*n*f/fs2); figure(3); stem(n,y2);
fs3=3*f; n=-1:0.1:1; y3=sin(2*pi*n*f/fs3); figure(4); stem(n,y3); figure (5);
subplot(2,2,1); plot(t,x); subplot(2,2,2); plot(n,y1); subplot(2,2,3); plot(n,y2); subplot(2,2,4); plot(n,y3);
7 Comments
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/36428-sine-wave-plot#comment_481564
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/36428-sine-wave-plot#comment_481564
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/36428-sine-wave-plot#comment_489408
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/36428-sine-wave-plot#comment_489408
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/36428-sine-wave-plot#comment_770429
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/36428-sine-wave-plot#comment_770429
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/36428-sine-wave-plot#comment_1137043
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/36428-sine-wave-plot#comment_1137043
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/36428-sine-wave-plot#comment_1260183
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/36428-sine-wave-plot#comment_1260183
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/36428-sine-wave-plot#comment_1260218
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/36428-sine-wave-plot#comment_1260218
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/36428-sine-wave-plot#comment_1260238
Direct link to this comment
https://la.mathworks.com/matlabcentral/answers/36428-sine-wave-plot#comment_1260238
Sign in to comment.