Solving symbolic matrix equals numeric matrix

6 views (last 30 days)
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

Accepted Answer

Walter Roberson
Walter Roberson on 27 Feb 2018
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

More Answers (0)

Community Treasure Hunt

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

Start Hunting!