Help plss i always gets error message while running this code

조회 수: 16 (최근 30일)
jtt
jtt 2022년 4월 23일
답변: Jan 2022년 4월 23일
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
Sam Chak 2022년 4월 23일
@jtt, can you insert the MATLAB code properly? Please show the error message as well.

댓글을 달려면 로그인하십시오.

답변 (1개)

Jan
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.

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by