phase VS frequency block !!!
Afficher commentaires plus anciens
Hello,
I’m looking for a block that it can show me the phase of a signal (rad) versus the frequency (Hz), for example a block similar at the spectrum scope but the y axis is the phase (rad) and not the gain (dB). Thanks a lot, Be good.
Réponses (2)
Rick Rosson
le 21 Juil 2011
0 votes
FFT and Phase/Magnitude Blocks
You can use the "FFT" block to convert the signal from the time-domain to the frequency domain, followed by the "Complex to Magnitude-Angle" block to compute the phase in radians. If you know the sampling rate, you can compute the corresponding frequency doemain, and then plot the phase versus frequency using the "XY Graph" scope block.
4 commentaires
al-comm
le 21 Juil 2011
Rick Rosson
le 21 Juil 2011
I am confused. Do you want to see _Amplitude_ versus Frequency, or do you want to see _Phase_ versus Frequency? I do not know what you mean by "amplitude of the phase"...
al-comm
le 21 Juil 2011
al-comm
le 21 Juil 2011
Rick Rosson
le 21 Juil 2011
0 votes
MATLAB Function Block
Another possibility would be to use the MATLAB Function Block (R2011a or later) or the Embedded MATLAB Function Block (R2010b or earlier) to compute the FFT and to plot the phase versus the frequency. Again, you will need to know the sampling rate to be able to compute the frequency domain.
Catégories
En savoir plus sur Scopes and Data Logging dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!