Pass symbolic variables or simply symbolic variable?
1 次查看(过去 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
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Assumptions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!