Help plss i always gets error message while running this code
조회 수: 16 (최근 30일)
이전 댓글 표시
syms Fab,Fad,Fbc,Fbd,Fcd,Fce,Fde,Ax,Ay,Ey; t=(36.87)*(pi/180); % Equilibrium equations eqn1=Fab+Ay==0; eqn2=Fad+Ax==0; eqn3=-Fab-Fbd*cos(t)==0; eqn4=Fbc+Fbd*sin(t)==-74; eqn5=-Fcd-Fce*cos(t)==24; eqn6=-Fbc+Fce*sin(t)==0; eqn7=Fbd*cos(t)+Fcd==0; eqn8=-Fad-Fbd*sin(t)+Fde==0; eqn9=Fce*cos(t)+Ey==0; eqn10=-Fde-Fce*sin(t)==0; %convert the equations into the form AX = B [A,B] = equationsToMatrix([eqn1, eqn2, eqn3, eqn4, eqn5, eqn6, eqn7, eqn8, eqn9, eqn10], [Fab, Fad, Fbc, Fbd, Fcd, Fce, Fde, Ax, Ay, Ey]); X = linsolve(A,B)
댓글 수: 1
Sam Chak
2022년 4월 23일
@jtt, can you insert the MATLAB code properly? Please show the error message as well.
답변 (1개)
Jan
2022년 4월 23일
The problem is in the first line already:
syms Fab,Fad,Fbc,Fbd,Fcd,Fce,Fde,Ax,Ay,Ey;
% ^ ^ ^ ^ ^ ^ ^ ^ ^
Omit the commas.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Calculus에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!