Not enough input arguments

15 ビュー (過去 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 Center および File ExchangeNumber Theory についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by