Solving symbolic matrix equals numeric matrix

5 次查看(过去 30 天)
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
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 个)

类别

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