unwrap() command resulting in phase bump
5 ビュー (過去 30 日間)
古いコメントを表示
I have raw phase and gain data where the phase data wraps at 90deg (expected). When I tried to unwrap the data for plotting I noticed a "bump" in the phase that did not seem consistent with the phase trajectory.
% Unwrap the phase data
phase_deg = unwrap(phase_deg, 90);
I then manually unwrapped the data at 90 degrees and the result is what I expected from unwrap.
% Unwrap the phase data
if(phase_deg(ii) > 90 )
phase_deg(ii) = phase_deg(ii) - 360;
end
I'm not sure what I'm misunderstanding in how to use unwrap, or why it is not handling my data as expected.
See image below for the data:![freqResp_unwrap_comp.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/238927/freqResp_unwrap_comp.png)
![freqResp_unwrap_comp.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/238927/freqResp_unwrap_comp.png)
0 件のコメント
回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!