how can I convert a binary matrix to a linear data?
58 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have a matrix A of size 3X2. Where A(1,1)=1, A(1,2)=0, A(2,1)=1, A(2,2)=1, A(3,1)=0, A(3,2)=1. I need the data in linear array like 1 0 1 1 0 1 please help me...
0 Commenti
Risposta accettata
Pedro Villena
il 16 Gen 2013
Modificato: Pedro Villena
il 17 Gen 2013
reshape(A',1,[])
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Resizing and Reshaping Matrices in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!