Maxflat function generates error message for certain condition.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (2)
Sindhu Yerragunta
am 9 Aug. 2017
Hi Keonwook,
Please refer diagnostics section for why this error occurs:
Hope this helps you.
-Sindhu
Jan
am 9 Aug. 2017
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 Kommentare
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!