Using Matlab for solving symbolic equations
Ältere Kommentare anzeigen
Hi all,
Im trying to solve the following FEM equations for a cross pivot flexure mechanism in 2D. I'm just trying to get the same result for theta for verification, to later use MATLAB for other symbolic equations.

I have written the following code, which does only return an empty symbol.
close all;
clear all;
clc;
syms theta v_A v_B theta_A theta_B L S_A N_B M_A M_B M N_B S_B d E I N_A
Eq_1 = v_A == L*theta;
Eq_2 = theta_A == theta;
Eq_3 = v_B == L*theta/2;
Eq_4 = theta_B == theta/2;
Eq_5 = S_A == N_B;
Eq_6 = N_A == -S_B;
Eq_7 = M_A == -M_B + M - N_B*d*sin(theta) - S_B *d*cos(45);
Eq_8 = v_A == S_A*L^3/(3*E*I) + M_A*L^2/(2*E*I);
Eq_9 = theta_A == S_A*L^2/(2*E*I) + M_A*L/(E*I);
Eq_10 = v_B == S_B*L^3/(3*E*I) + M_B*L^2/(2*E*I);
Eq_11 = theta_B == S_B*L^2/(2*E*I) + M_B*L/(E*I);
eqns = [Eq_1 Eq_2 Eq_3 Eq_4 Eq_5 Eq_6 Eq_7 ...
Eq_8 Eq_9 Eq_10 Eq_11];
Y = solve(eqns,theta)
Does someone know how to fix this?
Thank you in advance.
Regards,
Wenzel
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Symbolic Math Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!