Solving symbolic matrix equals numeric matrix

I have a 6x6 symbolic matrix in 38 unknowns, each is a linear equation, in which every entry in the matrix should be equal to zero. 36 of the unkowns are W1_1 to W6_6 and then I have x and y, I'd like to solve to get each W in terms of x and y. I'm pretty sure each equation should be linearly independent based on how it's derived. Can I solve this?
eg. the first entry is:
(W1_2)/5 - (137*W1_1)/30 - (W1_3)/20 + (W1_4)/30 - (W1_5)/20 + (W1_6)/5 + (W2_1)/5 - (W3_1)/20 + (W4_1)/30 - (W5_1)/20 + (W6_1)/5 - (2258263064185891426799*x)/617955436763950584 + (3977666753688019*y)/13179574127525 + 1 = 0

 채택된 답변

Walter Roberson
Walter Roberson 2018년 2월 27일

1 개 추천

Assuming you had done
W = sym('W', [6 6]);
syms x y
then
sol = solve(Your6x6, W);
Now you should have sol.W1_1, sol.W1_2 and so on, and you can use
subs(W, sol)
to get the array filled out

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Symbolic Math Toolbox에 대해 자세히 알아보기

질문:

2018년 2월 27일

답변:

2018년 2월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by