MATLAB: How can I convert a binary matrix to a linear data

MATLABreshape

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…

Best Answer

reshape(A',1,[])
Related Question