フィルターのクリア

I have a problem with unwrap

4 ビュー (過去 30 日間)
Ghazal Hnr
Ghazal Hnr 2017 年 3 月 12 日
コメント済み: Ghazal Hnr 2017 年 3 月 12 日
I want to plot phase of a signal with unwrap code but when i run it, matlab shows me this error:
Error using sym/diff (line 36)
The second and third arguments must either be variables or a variable and a nonnegative integer
specifying the number of differentiations.
Error in unwrap>LocalUnwrap (line 85)
dp = diff(p,1,1); % Incremental phase variations
Error in unwrap (line 65)
q(indf,j) = LocalUnwrap(p(indf,j),cutoff);
Error in Q1 (line 40)
unwrap(phase_1)
How can I fix this problem?

採用された回答

Walter Roberson
Walter Roberson 2017 年 3 月 12 日
unwrap() is only defined for numeric values, not for symbolic values.
  5 件のコメント
Walter Roberson
Walter Roberson 2017 年 3 月 12 日
What shows up if you do
n_phase_1 = double(phase_1);
class(n_phase_1)
size(n_phase_1)
plot(n_phase_1)
Ghazal Hnr
Ghazal Hnr 2017 年 3 月 12 日
thank youuuu, it works

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMeasurements and Testbenches についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by