Extract Real and Imaginary Equation with MATLAB

  • Thread starter Thread starter fox2005eng
  • Start date Start date
  • Tags Tags
    Imaginary Matlab
AI Thread Summary
To extract the real and imaginary components of a complex signal in MATLAB, the built-in functions real() and imag() can be utilized without the need for custom M-files. An example complex signal is provided: x(t) = e^(j*2*pi*t/16) + e^(j*2*pi*t/8). Users are encouraged to refer to the MATLAB documentation for detailed guidance on these functions. The discussion emphasizes that using these functions simplifies the process of obtaining the desired components. Overall, leveraging MATLAB's existing functions is the most efficient approach for this task.
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
 
Back
Top