Complex operation of the real valued signal in MATLAB SIMULATION
4 views (last 30 days)
Show older comments
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
on 25 Jul 2020
Can't you simply add an extra pi/2 to phi in Simulink to achieve the same resut?
Answers (1)
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
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!