Extract Real and Imaginary Equation with MATLAB

  • Thread starter Thread starter fox2005eng
  • Start date Start date
  • Tags Tags
    Imaginary Matlab
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 5K views
fox2005eng
Messages
6
Reaction score
0
Extract Real and Imaginary Equation with MATLAB !

Hi all,

How to write M-files that can extract the real and imaginary components, or the magnitude and phase, of a symbolic expression for a complex signal with MATLAB.

x(t) = e^j*2*pi*t/16 + e^j*2*pi*t/8 <<< equation example

Thanks In Advance.

Bye
 
Physics news on Phys.org


You shouldn't have to write an m-file to do this. You should be able to use the real() and imag() functions to extract the real and imaginary components.
 


AIR&SPACE said:
You shouldn't have to write an m-file to do this. You should be able to use the real() and imag() functions to extract the real and imaginary components.

how?

would u please gimee code example ?

bye