Impact-Site-Verification: dbe48ff9-4514-40fe-8cc0-70131430799e

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

Popular Posts

Followers