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);

 Accepted Answer

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 Comment

Thank you very much. There is one more conv.m, as a part of a different script.

Sign in to comment.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!