Asymetric Amplitude
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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
Risposte (2)
Walter Roberson
il 29 Giu 2011
PosAmp = 1.0;
NegAmp = 0.5;
sinus = PosAmp .* linspace(0,50*pi,500);
sinus(sinus<0) = sinus(sinus<0) .* (NegAmp ./ PosAmp);
0 Commenti
Vedere anche
Categorie
Scopri di più su Animation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!