Complex operation of the real valued signal in MATLAB SIMULATION

4 views (last 30 days)
I want to multiply j (complex operator) to a real valued sine signal of certain frequency in matlab simulation which I am unable to do in Simulink .
{For eg: when we multiply
j*A*sin(wt +phi) where w= 2*pi*f, f= unknown frequency, phi= unknown phase angle and A = unknown magnitude, the result comes out to be
= A*cos(wt +phi) }
  2 Comments
Alan Stevens
Alan Stevens on 25 Jul 2020
Can't you simply add an extra pi/2 to phi in Simulink to achieve the same resut?
MANAS MISHRA
MANAS MISHRA on 25 Jul 2020
Thanks for the response .
Now i cant add pi/2 simply because the real valued signal contains many sine signals of different frequencies such as
sin(w1*t)+sin(w2*t)+sin(w3*t)+........
Moreover I even can't differentiate or integrate the signal as as the frequencies of these signals are unknown hence I cannot obtain the pi/2 phase shifted version of the above real valued signal. So I am left only with the j operater to do my job.

Sign in to comment.

Answers (1)

David Goodmanson
David Goodmanson on 25 Jul 2020
Edited: David Goodmanson on 4 Jan 2023
Well,
j*A*sin(wt+phi) does not equal A*cos(wt+phi)
although
Re[ exp(j*(wt+phi)) ] = cos(wt+phi)
and
j*Re[ -j*exp(j*(wt+phi)) ] = j*sin(wt+phi) % two introduced factors of j on left hand side

Categories

Find more on Modeling in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!