๐‘ฅ [๐‘›] = ๐‘ข[๐‘›]๐‘’^โˆ’๐‘› how to plot it

์กฐํšŒ ์ˆ˜: 1 (์ตœ๊ทผ 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
Sam Chak
Sam Chak 2023๋…„ 10์›” 19์ผ

๋Œ“๊ธ€์„ ๋‹ฌ๋ ค๋ฉด ๋กœ๊ทธ์ธํ•˜์‹ญ์‹œ์˜ค.

์นดํ…Œ๊ณ ๋ฆฌ

Help Center ๋ฐ File Exchange์—์„œ Frequency-Domain Analysis์— ๋Œ€ํ•ด ์ž์„ธํžˆ ์•Œ์•„๋ณด๊ธฐ

ํƒœ๊ทธ

์ œํ’ˆ


๋ฆด๋ฆฌ์Šค

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by