Help plss i always gets error message while running this code
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commento
Sam Chak
il 23 Apr 2022
@jtt, can you insert the MATLAB code properly? Please show the error message as well.
Risposte (1)
Jan
il 23 Apr 2022
The problem is in the first line already:
syms Fab,Fad,Fbc,Fbd,Fcd,Fce,Fde,Ax,Ay,Ey;
% ^ ^ ^ ^ ^ ^ ^ ^ ^
Omit the commas.
0 Commenti
Vedere anche
Categorie
Scopri di più su Loops and Conditional Statements in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!