Hello, I am using the version Matlab 2019a and aparently there is a bug using the polyder function. Even when I am trying to run the same calculations as in the example provided online, I get the following message:
>> p = [3 0 -2 0 1 5];
>> q = polyder(p)
Error using conv (line 10)
Dimensions have to be equal or larger than dimensions of the kernel!
Error in polyder (line 24)
a1 = conv(up,v); a2 = conv(u,vp);

 채택된 답변

Steven Lord
Steven Lord 2019년 6월 27일

1 개 추천

You've likely written or downloaded a conv.m that's taking precedence over the conv function included in MATLAB. Line 10 of the conv function included in MATLAB is roughly in the middle of the help text, not an executable instruction.
To check this, run:
which -all conv
If there are any conv.m functions that are outside the matlabroot directory, rename or remove them.

댓글 수: 1

Georgia Roussou
Georgia Roussou 2019년 6월 27일
Thank you very much. There is one more conv.m, as a part of a different script.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

제품

태그

질문:

2019년 6월 27일

댓글:

2019년 6월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by