Maxflat function generates error message for certain condition.
1 次查看(过去 30 天)
显示 更早的评论
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);
0 个评论
回答(2 个)
Sindhu Yerragunta
2017-8-9
Hi Keonwook,
Please refer diagnostics section for why this error occurs:
Hope this helps you.
-Sindhu
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.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!