Hi, i'm just learning this and was wondering how do i put the following in matlab?
๐‘ฅ๐‘Ž(๐‘ก) =๐‘’^โˆ’500|๐‘ก|
i understant that i can put x=exp(-500) but how about the |t|?
Thank you very much in advance

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

Scott MacKenzie
Scott MacKenzie 2021๋…„ 4์›” 25์ผ

0 ๊ฐœ ์ถ”์ฒœ

exp(-500*abs(t))

๋Œ“๊ธ€ ์ˆ˜: 1

Abdul Basir Fathillah
Abdul Basir Fathillah 2021๋…„ 4์›” 25์ผ
Thank you. then how do i plot it's fourier transform?
Is this way correct?
Fs = 1000;
dt = 1/Fs;% sampling interval in time
t = 0:dt:10;% time from 0s to 10s
x = exp(-500*abs(t));% signal in time domain
%x=exp(-t).*cos(100*t)
F = 0.01*fft(x); %signal in frequency domain
figure(1)
plot (abs(F));

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

์นดํ…Œ๊ณ ๋ฆฌ

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

ํƒœ๊ทธ

์งˆ๋ฌธ:

2021๋…„ 4์›” 25์ผ

๋Œ“๊ธ€:

2021๋…„ 4์›” 25์ผ

Community Treasure Hunt

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

Start Hunting!

Translated by