convert matrix into another matrix
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
a=[0 0 1 1;
0 0 1 1;
0 2 2 2;
2 2 3 3]
this is my matrix and i want to obtain
b=[1 1 0 0;
1 1 0 0;
2 2 2 0;
3 3 2 2]
how can i do this. can you help me.
0 Commenti
Risposte (1)
Yatin
il 14 Ott 2013
Hi,
You can try using the " fliplr " command for flipping the matrix elements.
Here is the link to the documentation:
0 Commenti
Vedere anche
Categorie
Scopri di più su Function Creation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!