๐ฅ [๐] = ๐ข[๐]๐^โ๐ how to plot it
์กฐํ ์: 1 (์ต๊ทผ 30์ผ)
์ด์ ๋๊ธ ํ์
๐ฅ[๐] = ๐ข[๐]๐^โ๐
๋๊ธ ์: 0
๋ต๋ณ (1๊ฐ)
akshatsood
2023๋
10์ 19์ผ
ํธ์ง: akshatsood
2023๋
10์ 19์ผ
Hi Mohammed,
I understand that you want to plot the following discrete equation.This can be achieved by leveraging the "stem" function which is used for plotting discrete sequence data.
n = (-20:20); % defining range of n
u_n = (n>=0); % unit step function
tiledlayout(3,1);
nexttile; % u[n]
stem(n,u_n);
nexttile; % e^-n
stem(n,exp(-n));
nexttile; % u[n]*e^-n
stem(n,u_n.*exp(-n));
For more information about the "stem" function, have a look at the following reference
I hope this helps
์ฐธ๊ณ ํญ๋ชฉ
์นดํ ๊ณ ๋ฆฌ
Help Center ๋ฐ File Exchange์์ Frequency-Domain Analysis์ ๋ํด ์์ธํ ์์๋ณด๊ธฐ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
