Matrix transform due to reorder of the equation row number, for AX=b
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi,
I'd like to solve equation AX=b, e.g., [a11, a12, a13; a21, a22, a23; a31, a32, a33]*{x1, x2, x3}'={b1,b2,b3}'
However, I'd like to reorder X vector by {x2, x1, x3}', so is there any matlab code can do the row and column transform for matrix A?
Thanks.
3 commentaires
Réponse acceptée
Azzi Abdelmalek
le 25 Sep 2013
A= A(:,[2 1 3])
b=b([2 1 3])
5 commentaires
Azzi Abdelmalek
le 25 Sep 2013
You change only A, but this time you change the rows order
A=A([2 1 3],:)
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!