Not enough input arguments
Ältere Kommentare anzeigen
Hey guys I have a problem here
recently when I use almost any function I get this message 'Not enough input arguments'
for ex,
clc;
clear;
V=randi([-10,10],1,5);
disp('The vector is: num2str(V)');
sub=V-3;
disp(sub);
pos=(V>0);
Numpos=sum(pos);
disp(Numpos);
abs(V);
disp(abs);
max(V);
disp(max);
I wrote this simple code and I got error in abs because there is not enough arguments.
Antworten (2)
per isakson
am 12 Dez. 2018
abs and max are Matlab functions, which requires input. Thus
disp(abs)
disp(max)
are wrong. What did you intend?
madhan ravi
am 12 Dez. 2018
disp(abs(V)) %change your lines to this
disp(max(V))
Kategorien
Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!