Not enough input arguments

조회 수: 17 (최근 30일)
Arupratan Gupta
Arupratan Gupta 2023년 1월 19일
댓글: Dyuman Joshi 2023년 1월 19일
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
Arupratan Gupta
Arupratan Gupta 2023년 1월 19일
No l, I did not input or create a function integer
Dyuman Joshi
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 CenterFile Exchange에서 Number Theory에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by