suggestions on generating periodic decaying exponential signal

1 回表示 (過去 30 日間)
Neels
Neels 2011 年 7 月 21 日
Hi, i am trying to generate a periodic decaying exponential signal in the time interval between -5 and 100 . I am trying to visualize it like a sawtooth waveform (but reversed and having gradual decay). can someone help me with this
t=-5:t_step:100;
bt_new=0;
L=0.018;
t_step=0.1221;
N= L/t_step;
for l=0:2.0930e-03:N
bt = exp(-0.24*((t-(l.*ones(size(t))*t_step))));
bt_new =bt_new+bt;
end
plot (t,bt_new);
I am trying to generate a periodic decaying exponential, any ideas

採用された回答

bym
bym 2011 年 7 月 22 日
is this close to what you want?
clear;clc
t = -5:.1:100;
plot(t,fliplr(sawtooth(t)).*exp(-t./20))
  2 件のコメント
Neels
Neels 2011 年 7 月 22 日
Thanks for the response. the answer is close to what i expected. But basically i want an periodically decaying exponential signal (whose amplitude varies between 1 and 0).
but while using a sawtooth waveform the amplitude extends from -1 to 1. I want to manipulate the amplitude. Do you have any suggestions
Walter Roberson
Walter Roberson 2011 年 7 月 22 日
add 1, divide the result by 2.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by