Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

not enough input argument

5 visualizzazioni (ultimi 30 giorni)
Geon Jung
Geon Jung il 2 Set 2019
Chiuso: MATLAB Answer Bot il 20 Ago 2021
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 Commenti
Rik
Rik il 2 Set 2019
How are you calling this function?
Walter Roberson
Walter Roberson il 2 Set 2019
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.

Risposte (0)

Questa domanda è chiusa.

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by