Solve unknow array/matrix
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have a know 2x2 array (3 0; 0 2)that get multiplied by array A and the answer is a known array C(1 2 3; 4 5 6), how can I solve all the elements in array A?
0 commentaires
Réponses (1)
the cyclist
le 6 Nov 2021
% Input
B = [3 0; 0 2];
C = [1 2 3; 4 5 6];
% Solve for A
A = B\C
% Verify
B * A
1 commentaire
John D'Errico
le 6 Nov 2021
Yes, of course. With only the caveat that an exact solution need not always exist. If B does not have full rank, then SOME of the time, there will be no solution.
Voir également
Catégories
En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!