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.

댓글 수: 2

Reham Sayed
Reham Sayed 2018년 12월 12일
someone help me please I have a final exam after 6 hours.
Reham Sayed
Reham Sayed 2018년 12월 12일
Thanks guys
It seems like I need coffeee :'D

댓글을 달려면 로그인하십시오.

답변 (2개)

per isakson
per isakson 2018년 12월 12일

0 개 추천

abs and max are Matlab functions, which requires input. Thus
disp(abs)
disp(max)
are wrong. What did you intend?
madhan ravi
madhan ravi 2018년 12월 12일

0 개 추천

disp(abs(V)) %change your lines to this
disp(max(V))

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

태그

질문:

2018년 12월 12일

댓글:

2018년 12월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by