Too many input arguments
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello! I noticed that whenever I use the syntaxes residue() and roots(), I get the error "too many input arguments". I copy pasted this code directly from matlab's documentation, but I keep getting the error. I tried to run the code here and it works. Is there any way to fix it?
p = [3 -2 -4];
r = roots(p)
1 Commento
Risposte (1)
VBBV
il 24 Lug 2022
p = [3 -2 -4];
TESTE(p) ;% give the input argument matrix p for the function TESTE in command window
function r = TESTE(p)
r = roots(p);
end
If you give the input argument matrix , p to the function TESTE in command window, then it will work, It seems you have not given any input arguments and calling function directly
1 Commento
Vedere anche
Categorie
Scopri di più su Matrix Indexing in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!