Realization of "Addition" in MATLAB with example
close all
clc;
n=0:20;
x_n=n.*((n>=0)-(n>=10));
subplot(3,1,1);
stem(n,x_n);
y_n=(n>=10)-(n>=20);
alfa=-0.3*(n-10);
z_n=10*(exp(alfa)).*y_n;
subplot(3,1,2);
stem(n,z_n);
output=x_n+z_n;
subplot(3,1,3);
stem(n,output);
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