Not enough input arguments
12 次查看(过去 30 天)
显示 更早的评论
F_A = load('F_A.txt');
F_B = load('F_B.txt');
x = load('x.txt');
L = load('L.txt');
function vsol = defDiagramSupp(w,E,L,b,h)
syms x F_A F_B u v(x)
% w(x) = w;
eqF = F_A + F_B + integer(w(x),x,0,L)==0;
eqM = L* F_B+ integer(w(x)*x,x,0,L)==0;
sol = solve([eqF,eqM],[F_A,F_B]);
FA = sol.F_A;
FB = sol.F_B;
S(x) = FA + int(w(u),u,0,x);
M(x) = ingt(S(u),u,0,x);
I = sym(b)*sym(h)^3/12;
deq = diff(v,x,2) == M(x)/(E*I);
bc = [v(0) == 0,v(L)==0];
vsol(x) = dsolve(deq,bc);
figure("Position",[0 0 600 600])
subplot("Position",[0.05,0.7,0.9,0.25])
rollerPos = L;
pinPos = 0;
xLims = barDiagramDefl(L,double(FA)/1e10,double(FB)/1e10,w(x)/1e10,rollerPos,pinPos,vsol);
subplot("Position",[0.05,0.4,0.9,0.25])
momentDiagram(L,xLims,M(x))
end
Error:
Not enough input arguments.
Error in defDiagramSupp (line 4)
eqF = F_A + F_B + integer(w(x),x,0,L)==0;
3 个评论
Dyuman Joshi
2023-1-19
It seems you mis-typed int as integer. Correct the typos and see if it works or not.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Number Theory 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!