Maxflat function generates error message for certain condition.

1 回表示 (過去 30 日間)
Keonwook Kim
Keonwook Kim 2017 年 8 月 6 日
回答済み: Jan 2017 年 8 月 9 日
In the following situation, the maxflat function has error. Does any one have same problem? How can I fix that? Thank you.
>> [b,a] = maxflat(9,3,0.5,'trace'); Table:
L M N wo_min/pi wo_max/pi
9.0000 0 3.0000 0 0.2707
8.0000 1.0000 3.0000 0.2707 0.3710
7.0000 2.0000 3.0000 0.3710 0.4581
6.0000 3.0000 3.0000 0.4581 0.5419
5.0000 4.0000 3.0000 0.5419 0.6290
4.0000 5.0000 3.0000 0.6290 0.7293
3.0000 6.0000 3.0000 0.7293 1.0000
Error using cplxpair (line 67) Complex numbers can't be paired.
Error in zp2sos>orderzp (line 206) p = cplxpair(p);
Error in zp2sos (line 85) [z,p,lz,lp,L] = orderzp(z,p);
Error in maxflat>buildsos (line 506) [sosden,gden] = zp2sos(zeros(size(ar)),ar,1); %#ok
Error in maxflat (line 213) [sos,g] = buildsos(br,L,ar,a,b2);

回答 (2 件)

Sindhu Yerragunta
Sindhu Yerragunta 2017 年 8 月 9 日
Hi Keonwook,
Please refer diagnostics section for why this error occurs:
Hope this helps you.
-Sindhu
  1 件のコメント
Keonwook Kim
Keonwook Kim 2017 年 8 月 9 日
Thank you for the reply. The 'maxflat' is the genuine matlab toolbox function. I did not make it. I think that the Mathworks should aware this problem.

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


Jan
Jan 2017 年 8 月 9 日
I confirm that Matlab 2016b stops with this error. For other parameters the function works as expected, e.g.:
[b,a] = maxflat(10, 3, 0.5, 'trace')
If you think that MathWorks should be aware of the problem , please contact them using the "Contact us" button.

カテゴリ

Help Center および File ExchangeDirection of Arrival Estimation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by