help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: adjusting amplitude modulation / wave shaping


From: Juan Pablo Carbajal
Subject: Re: adjusting amplitude modulation / wave shaping
Date: Wed, 30 Nov 2011 17:03:24 +0100

On Wed, Nov 30, 2011 at 4:52 PM, Rick T <address@hidden> wrote:
> Greetings All
>
> I have some working code that does amplitude modulation and plots it.
> However I'm trying to change the way the modulation looks (the y variable)
> so it looks like an egg shape.  I found an equation/website that looks good
> http://www16.ocn.ne.jp/~akiko-y/Egg/index_egg_E.html
> but I'm not to sure how to convert that into matlab/octave code to change
> the y variable
>
> %test_amplitude modultaion
>
> fs=1000;
>
> t=linspace(0,2*pi,fs);
>
>
> mt=1*sin(100*t); %signal you want to use
>
> y=mt.*(1+cos(1*t+pi));%modulation equation, use pi to shift over 90 deg to
> start at 0
>
>
> y=y';
>
> y_norm=(y(:,1)/max(abs(y(:,1)))*.8); %normalize signal
>
>
> plot(y_norm)
>
>
>
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave
>

I may be missing something, but doesn't equation (9b) helps you?
The plus-minus sign defines the branch since the egg shape is not a function.


-- 
M. Sc. Juan Pablo Carbajal
-----
PhD Student
University of Zürich
http://ailab.ifi.uzh.ch/carbajal/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]