필터 지우기
필터 지우기

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 CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by