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

 Réponse acceptée

Steven Lord
Steven Lord le 27 Juin 2019

1 vote

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 commentaire

Georgia Roussou
Georgia Roussou le 27 Juin 2019
Thank you very much. There is one more conv.m, as a part of a different script.

Connectez-vous pour commenter.

Plus de réponses (0)

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by