what is the difference between "unwrap" and "phasez" function
Ältere Kommentare anzeigen
Hello, I'm trying to analyze the phase response of S-parameter.
And there are 2 functions in Matlab in term of unwrapped phase, which are "unwrap" and "phasez".
When I plot three case below, it shows difference result.
test1 = angle(S21)*180/pi;
test2 = unwrap(angle(S21)*180/pi);
test3 = phasez(angle(S21)*180/pi);

I understood the how the "unwrap" function work. (It just make it flat.)
But, I couldn't get How the matlab create the "phasez" plot. And, I found out the "phasez" function make the matrix size to be 512*1. Is there specific reason for this?
In addition,in principle, the unwrapped phase need to start from 0 in DC.
But, the plot of test2 doesn't. So, that's also confusing.
Is there anyone to explain this question?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Dynamic System Models finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!