필터 지우기
필터 지우기

Maxflat function generates error message for certain condition.

조회 수: 2 (최근 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 CenterFile Exchange에서 Signal Attributes and Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by