Not enough input arguments
Mostrar comentarios más antiguos
I am a novice and I ran this code in December with no issues. Now I get an error "Not enough input arguments. Error in line 7. alg.ptag = pid;.
I was just prompted to renew my license, not sure if that changed my version to a new one that works differently.
How can I rewrite it so that it works? Did something change in Matlab?
function initalg(pid)
% Setting global parameters
global alg
alg = {};
% parameters to use
alg.ptag = pid;
3 comentarios
Torsten
el 4 de Mzo. de 2023
Delete the line
alg = {};
It makes no sense.
Walter Roberson
el 4 de Mzo. de 2023
it might be an attempt to clear the previous value of the the global since this is an initialization function. It should probably be something like
alg = struct() ;
Anthony Santana
el 4 de Mzo. de 2023
Respuesta aceptada
Más respuestas (1)
Perhaps you have added the control system toolbox since last time this worked?
That toolbox contains a function named pid that expects input arguments.
which -all pid
help pid
1 comentario
Anthony Santana
el 4 de Mzo. de 2023
Categorías
Más información sobre PID Controller Tuning en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!