Solve for an unknown matrix like solve() for dimension one
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Kunle Olutomilayo
el 28 de Mayo de 2019
Respondida: Sulaymon Eshkabilov
el 28 de Oct. de 2023
syms d
eqn = d^2 - 9 == 0;
sol = solve(eqn, d)
The above is a method of 'solving' in dimension one. Solve() wouldn't work
May I know the option(s) of 'solving' in multi-dimensions, especially when we have diagonal matrices? An example is provided below:
eqn2 = D^(-3) + D^(-2)*W1 + W2 == zeros(n)
where D, W1 and W2 are diagonal matrices and n is the length of D. D is positive. If W1 and W2 are known, how can we solve for D?
PS: I checked the fminunc family but they for optimization (minimum solvers).
2 comentarios
Torsten
el 28 de Oct. de 2023
D = sym('D',[2 2]);
eqn = D*[1 4;-3 5] == [1 7;9 -12];
solve(eqn)
Respuestas (1)
Sulaymon Eshkabilov
el 28 de Oct. de 2023
This exercise can be also simulated/solved by this way:
N=3; % Dimension
syms d [N N]
Eqn = d*randi(10, N)==randi(10,N);
SOL = solve(Eqn, d)
0 comentarios
Ver también
Categorías
Más información sobre Calculus en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!