Maxflat function generates error message for certain condition.

1 visualización (últimos 30 días)
Keonwook Kim
Keonwook Kim el 6 de Ag. de 2017
Respondida: Jan el 9 de Ag. de 2017
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);

Respuestas (2)

Sindhu Yerragunta
Sindhu Yerragunta el 9 de Ag. de 2017
Hi Keonwook,
Please refer diagnostics section for why this error occurs:
Hope this helps you.
-Sindhu
  1 comentario
Keonwook Kim
Keonwook Kim el 9 de Ag. de 2017
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.

Iniciar sesión para comentar.


Jan
Jan el 9 de Ag. de 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.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by