Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

not enough input argument

조회 수: 1 (최근 30일)
Geon Jung
Geon Jung 2019년 9월 2일
마감: MATLAB Answer Bot 2021년 8월 20일
This is my codes.
function [V] = TV(Dtank,Dpipe,Htank,Hwater)
h = Htank - Dtank/2;
r = Dpipe/2;
pv = pi*r^2*h;
ht = Hwater - h;
rt = Dtank/2;
wt = pi*(ht^2)*rt - (pi/3)*(ht^3);
V = pv + wt;
end
I am getting not enough input at line 2 but not sure what I am missing
  댓글 수: 2
Rik
Rik 2019년 9월 2일
How are you calling this function?
Walter Roberson
Walter Roberson 2019년 9월 2일
You cannot run that function just by clicking the green "run" button. You need to go to the command line and invoke it, passing in parameters. Or call it from another function that provides the arguments.

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by