Help plss i always gets error message while running this code
16 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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
el 23 de Abr. de 2022
@jtt, can you insert the MATLAB code properly? Please show the error message as well.
Respuestas (1)
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.
0 comentarios
Ver también
Categorías
Más información sobre Calculus en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!