# How can i solve matrix equations?

1 view (last 30 days)
Triveni on 3 Aug 2016
Answered: Torsten on 4 Aug 2016
X = 1.0e+07 * [ 3.4829 0.5180 1.0634;
0.5180 0.4133 0.2245;
1.0634 0.2245 0.5671];
Y = [-518.8958 212.9430 219.8578;
212.9430 93.0098 144.7626;
219.8578 144.7626 212.9430];
Z = [ 0.2586 0.0393 0.0763;
0.0393 0.0327 0.0185;
0.0763 0.0185 0.0430];
Cy = 2.75; Vy = 0.0021; Vxy = -0.0017; Tx = 2.51; Txy = -0.0017; Vx =3.21;
%I have to solve six unknown quantities i.e "Cx, Cxy,Vx, Ty, Vy, Vxy" I have to solve this equation,
[Cx;Cy;Cxy;Vx;Vy;Vxy] = [X,Y;Y,Z]*[Tx;Ty;Txy;Vx;Vy;Vxy];
%[6*1] = [6*6]*[6*1] Matrix size
%I want to calculate unknown quantities. Is it possible to calculate using MATLAB?

Torsten on 4 Aug 2016
Supply
F=[X,Y;Y,Z]*[Tx;x(1);Txy;x(2);x(3);x(4)]-[x(5);Cy;x(6);x(2);x(3);x(4)]
for MATLAB's "lsqnonlin" if e.g. Cx, Cxy, Vx, Ty, Vy, Vxy are unknown.
Or reorder your equations such that it reads A*x=b with b known and x unknown and solve for x using x=A\b.
Best wishes
Torsten.

### Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

### Community Treasure Hunt

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

Start Hunting!