What is difference between unwrap(angle(X)) and phase(X)?
Show older comments
I am manipulating a CSI (channel state information) a.k.a channel matrix containing complex numbers. And I want to extract phases from them. Hence,:
% X is a channel matrix of size 3 x 30
angle_ = angle(X);
angel_unwrapped_ = unwrap(angle_); % default tolerance is pi. Ref: help unwrap
for i = 1:3
phase_(i, :) = phase(X(i, :)); % always takes only one argument. phase_ is maed to keep it continuous over the pi-borders.. Ref: help phase
end
So, I understood that both functions unwrap() and phase() seem to have the same phase tolerance, pi.
But I've been confused becaseu of a figure below I've got:

I wonder why to functions show different wrapping behavior.
Just in case, I've attached the channel matrix data file.
2 Comments
Walter Roberson
on 4 Jan 2017
Please show
which -all phase
I am having difficulty locating a Mathworks phase() routine
N/A
on 4 Jan 2017
Accepted Answer
More Answers (1)
Rune Dueholm Bådsgård
on 15 Jan 2018
0 votes
Can I ask which app you are using for the phase function?
Categories
Find more on Signal Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!