Not enough input arguments
Show older comments
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 Comments
Kartikay Sapra
on 19 Jan 2023
Did you import/create the function 'integer'?
You may confirm this by typing the following in the command window.
which integer
For all other 'integer' functions or variables
which -all integer
Arupratan Gupta
on 19 Jan 2023
Dyuman Joshi
on 19 Jan 2023
It seems you mis-typed int as integer. Correct the typos and see if it works or not.
Answers (0)
Categories
Find more on Number Theory in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!