Which Toolbox is phase() in

241 ビュー (過去 30 日間)
Sreehari Ram Mohan
Sreehari Ram Mohan 2018 年 7 月 3 日
回答済み: jita falcon 2019 年 7 月 19 日
I have been using the trial version of matlab for the past month, however I recently bought the student version and while running my code I got the error
Undefined function or variable 'phase'.
Here are the following toolboxes I have installed (see after running "ver" command)
MATLAB Version 9.4 (R2018a)
Simulink Version 9.1 (R2018a)
Control System Toolbox Version 10.4 (R2018a)
DSP System Toolbox Version 9.6 (R2018a)
Image Processing Toolbox Version 10.2 (R2018a)
Instrument Control Toolbox Version 3.13 (R2018a)
Optimization Toolbox Version 8.1 (R2018a)
Signal Processing Toolbox Version 8.0 (R2018a)
Simulink Control Design Version 5.1 (R2018a)
Statistics and Machine Learning Toolbox Version 11.3 (R2018a)
Symbolic Math Toolbox Version 8.1 (R2018a)
Which toolbox do I need to get for the phase() function to work?
Thanks
  1 件のコメント
Walter Roberson
Walter Roberson 2019 年 1 月 13 日
Interesting speculation, but the user already reported that unwrap(angle()) works for them, suggesting that their needs had nothing to do with Phased Array toolbox.

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2018 年 7 月 4 日
編集済み: Walter Roberson 2018 年 7 月 4 日
phase() as a routine by itself is part of the System Identification Toolbox, in the "obsolete" category.
phase() is also a method of the newer iddata() class from the System Identification Toolbox.
But what you probably want is angle() followed by unwrap(), which is part of basic MATLAB.
  3 件のコメント
Walter Roberson
Walter Roberson 2018 年 7 月 4 日
The code has them implemented by different algorithms, but I do not seem to be able to find a difference when I test.
Sreehari Ram Mohan
Sreehari Ram Mohan 2018 年 7 月 4 日
Ok thank you, I tested it out and it works!

サインインしてコメントする。

その他の回答 (1 件)

jita falcon
jita falcon 2019 年 7 月 19 日
What is difference between unwrap(angle(X)) and phase(X)?
% 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

カテゴリ

Help Center および File ExchangeDigital Filter Analysis についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by