フィルターのクリア

Pass symbolic variables or simply symbolic variable?

2 ビュー (過去 30 日間)
aldburg
aldburg 2017 年 12 月 9 日
回答済み: Birdman 2017 年 12 月 9 日
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 Center および File ExchangeCalculus についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by