Asymetric Amplitude

Hi people,
I want to generate a sinusoid with asymmetric amplitude. The positive amplitude must be 1 and the negative amplitude must be 0.5.
How can I do It?
thanks

댓글 수: 1

bym
bym 2011년 6월 29일
what have your tried so far?

댓글을 달려면 로그인하십시오.

답변 (2개)

Paulo Silva
Paulo Silva 2011년 6월 29일

0 개 추천

t=0:0.01:10;
f=sin(t);
f(f<0)=f(f<0)/2;
plot(t,f)
Walter Roberson
Walter Roberson 2011년 6월 29일

0 개 추천

PosAmp = 1.0;
NegAmp = 0.5;
sinus = PosAmp .* linspace(0,50*pi,500);
sinus(sinus<0) = sinus(sinus<0) .* (NegAmp ./ PosAmp);

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

태그

질문:

2011년 6월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by