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

Search This Blog

Signum function in MATLAB | m-file

%Signum function in MATLAB
close all;
clc;
n=-20:20;
x_n1=n>=0;
subplot(3,1,1);
stem(n,x_n1);
x_n2=n<=0;
subplot(3,1,2);
stem(n,x_n2);
sgn_n=x_n1-x_n2;
subplot(3,1,3);
stem(n,sgn_n);

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