Info
此问题已关闭。 请重新打开它进行编辑或回答。
not enough input argument
3 次查看(过去 30 天)
显示 更早的评论
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 个评论
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!