𝑥 [𝑛] = 𝑢[𝑛]𝑒^−𝑛 how to plot it

2 ビュー (過去 30 日間)
Mohammed Alqahtany
Mohammed Alqahtany 2023 年 10 月 19 日
コメント済み: Sam Chak 2023 年 10 月 19 日
𝑥[𝑛] = 𝑢[𝑛]𝑒^−𝑛

回答 (1 件)

akshatsood
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
  2 件のコメント
Mohammed Alqahtany
Mohammed Alqahtany 2023 年 10 月 19 日
thank you

サインインしてコメントする。

タグ

製品


リリース

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by