Pass symbolic variables or simply symbolic variable?

2 次查看(过去 30 天)
syms epsilon_x epsilon_y gamma_xy N_x
[N_x; 0;0 ]=[11628 1494 0; 1494 11628 0; 0 0 1839]*[epsilon_x; epsilon_y; gamma_xy]
epsilon_y=solve(0 == [1494 11628 0]*[epsilon_x; epsilon_y; gamma_xy], epsilon_y)
I have declared symbolic variables but how do I solve for N_x in terms of only epsilon_x? I've have solved for epsilon_y in terms of epsilon_x but it doesn't replace epsilon_y when I try to solve for N_x

采纳的回答

Birdman
Birdman 2017-12-9
Try the following. sol2 will give you the solution of N_x in terms of epsilon_x.
syms epsilon_x epsilon_y gamma_xy N_x
eq=[N_x; 0;0 ]==[11628 1494 0; 1494 11628 0; 0 0 1839]*[epsilon_x; epsilon_y; gamma_xy]
sol1=solve(eq(2),epsilon_y);
eq(1)=subs(eq(1),epsilon_y,sol1);
sol2=solve(eq(1),N_x)

更多回答(0 个)

类别

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