Error using myfun (line 15) Not enough input arguments.
显示 更早的评论
Hi can anybody help me to figure out what's wrong with this function? It keeps giving me the error: Error using myfun (line 15) Not enough input arguments.
Thank you so much
function S = myfun(c1,L_UC,L_US)
global r s
%Compression
if r==0;
lam1 = L_UC+1;
lam2 = 1./lam1;
lam3 = 1./lam1;
lam1sq=lam1.^2;
lam2sq=lam2.^2;
lam3sq=lam3.^2;
I1 = (lam1sq+lam2sq+lam3sq);
%Simple shear
else s=0;
lam1 = L_US+1;
lam2 = 1.;
lam3 = 1.;
lam1sq=lam1.^2;
lam2sq=lam2.^2;
lam3sq=lam3.^2;
I1 = (lam1sq+lam2sq+lam3sq);
end
S= c1.*(I1-3);
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Argument Definitions 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!