Help plss i always gets error message while running this code

16 visualizaciones (últimos 30 días)
jtt
jtt el 23 de Abr. de 2022
Respondida: Jan el 23 de Abr. de 2022
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 comentario
Sam Chak
Sam Chak el 23 de Abr. de 2022
@jtt, can you insert the MATLAB code properly? Please show the error message as well.

Iniciar sesión para comentar.

Respuestas (1)

Jan
Jan el 23 de Abr. de 2022
The problem is in the first line already:
syms Fab,Fad,Fbc,Fbd,Fcd,Fce,Fde,Ax,Ay,Ey;
% ^ ^ ^ ^ ^ ^ ^ ^ ^
Omit the commas.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by