Search This Blog

Sine and cos signal in MATLAB | m-file


%Sine and cos sequence in MATLAB
close all;
clc;
n=-20:20;
x_n=sin(pi/2-2*pi*0.1*n);
subplot(2,1,1);
stem(n,x_n);
xlabel('Time sample');
ylabel('Amplitude');
x2_n=cos(2*pi*0.1*n);
subplot(2,1,2);
stem(n,x2_n);
xlabel('Time sample');
ylabel('Amplitude');




Please follow us:
https://www.facebook.com/matlabcodes

Join us on Telegram:
https://t.me/matlabirawen 

Join us on Facebook Group:
https://www.facebook.com/groups/matlabcodes

No comments

'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();