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

๋‹ต๋ณ€ (1๊ฐœ)

akshatsood
akshatsood 2023๋…„ 10์›” 19์ผ
ํŽธ์ง‘: akshatsood 2023๋…„ 10์›” 19์ผ

0 ๊ฐœ ์ถ”์ฒœ

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์ผ

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

์นดํ…Œ๊ณ ๋ฆฌ

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

์ œํ’ˆ

๋ฆด๋ฆฌ์Šค

R2023b

ํƒœ๊ทธ

์งˆ๋ฌธ:

2023๋…„ 10์›” 19์ผ

๋Œ“๊ธ€:

2023๋…„ 10์›” 19์ผ

Community Treasure Hunt

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

Start Hunting!

Translated by