Matlab help

Discussion in 'Programmer's Corner' started by ignite, Jan 14, 2009.

  1. ignite

    Thread Starter Member

    Jan 31, 2008
    18
    0
    Is there a function in mathlab which will calculate the phase of a sinosidal waveform or the phase difference between two sinosidal waveforms????

    Thanks
     
  2. mik3

    Senior Member

    Feb 4, 2008
    4,846
    63
    To put these sine waves in Matlab it means you know their equations. If this is the case then you can calculate the phase without Matlab.
     
  3. Dave

    Retired Moderator

    Nov 17, 2003
    6,960
    144
    Have you considered doing a Hilbert Transform, using the function hilbert (requires the signal processing toolbox), and then analyse the phase relationship from each analytic pair with respect to time.

    Dave
     
Loading...