フィルターのクリア

How to write e in matlab

1 回表示 (過去 30 日間)
noxnoxmox
noxnoxmox 2013 年 3 月 22 日
a = 100*exp(-2*t/T)*(sin(2*pi*t/T).^2);
Is that correct?

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 3 月 22 日
編集済み: Azzi Abdelmalek 2013 年 3 月 22 日
You can check if it's correct or not, in windows command type
t=10
T=5
a = 100*exp(-2*t/T)*(sin(2*pi*t/T).^2)
  2 件のコメント
noxnoxmox
noxnoxmox 2013 年 3 月 23 日
Thanks Azzi I figure it out; sin should be sind
Image Analyst
Image Analyst 2013 年 3 月 23 日
編集済み: Image Analyst 2013 年 3 月 23 日
sind() takes arguments in degrees, so I've never seen the term pi inside a sind(). Are you really going to do sind(2*pi*t/T)? Anyway whether you wanted sin() or sind() has nothing to do with "e". I couldn't figure out from your question whether you wanted the value e = exp(1) = 2.71828182845905, or whether you wanted to know how to raise e to some expression, like exp(-2*t/T) but you already seemed to know how to do that. So because it was ambiguous and confusing, I didn't answer.

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by