1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Extract Real and Imaginary Equation with MATLAB

  1. Apr 15, 2010 #1
    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
     
  2. jcsd
  3. Apr 15, 2010 #2
    Re: Extract Real and Imaginary Equation with MATLAB !!!!!

    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.
     
  4. Apr 16, 2010 #3
    Re: Extract Real and Imaginary Equation with MATLAB !!!!!

    how?

    would u please gimee code example ?

    bye
     
  5. Apr 16, 2010 #4
    Last edited by a moderator: Apr 25, 2017
  6. Apr 16, 2010 #5
    Last edited by a moderator: Apr 25, 2017
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook