Not enough input arguments

12 visualizzazioni (ultimi 30 giorni)
Arupratan Gupta
Arupratan Gupta il 19 Gen 2023
Commentato: Dyuman Joshi il 19 Gen 2023
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 Commenti
Arupratan Gupta
Arupratan Gupta il 19 Gen 2023
No l, I did not input or create a function integer
Dyuman Joshi
Dyuman Joshi il 19 Gen 2023
It seems you mis-typed int as integer. Correct the typos and see if it works or not.

Accedi per commentare.

Risposte (0)

Prodotti


Release

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by