Write a signal whose phase increases

7 Ansichten (letzte 30 Tage)
STP
STP am 4 Apr. 2019
Kommentiert: STP am 15 Apr. 2019
For eg I have an input : exp(1i*0) with a particular phase, I wish to write another signal whose phase goes till 180 degrees as max. And I have a theta/phi in which I can put values like pi/2 or pi/3 etc. Something like an increasing function which reaches 180 as max phase.. and can start from any phi/theta we put in. I dont want a function for all of this- like 0 to increasing to 180. but just the increasing thing.. how to put in code? How can I put phi(t) from phase 2 in code.
I tried- but it doesn't give me the desired result - if someone can correct it.
theta = 3*pi./4; %%
ta =[-2 0]; % 0 phase -- input1
tb = [0 2]; %% this is where the increasing phase should be max being 180
tc = [2 4]; % 180 degree phase reversal - see input3
a = -theta./(tb(2)-tb(1));
input1= exp(1i*0);
input2 = = @(t) 1.*exp(1i*(pi + a.*(t-tb(1)))); %%% what is wrong here???
input3 =exp(1i*pi);
( I think i am not putting 180 as the max maybe?) I am not sure how to do write this -it seems to simple to think and imagine but putting it in code is just not working for me.
  2 Kommentare
darova
darova am 4 Apr. 2019
Show your whole code. You have no "t" in your handle function
STP
STP am 4 Apr. 2019
Hi darova, Just edited.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

darova
darova am 4 Apr. 2019
  1 Kommentar
STP
STP am 15 Apr. 2019
Hi darova.
Thanks for your message, what you have messaged above is linear modulation - I wish to achieve non linear moduation

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by