How to reshape into 1-D array??????????reply soon plz

1 次查看(过去 30 天)
Hello! i wana to reshape the following (16-bit)one column and 9-rows into 1-D array...
{ B=
0000000000110000
0000000000111101
0000000000111110
0000000001000000
0000000001000100
0000000001001001
0000000001001010
0000000001001110
0000000001011100
Bin_array=reshape(B,1,size(B, 1)*size(B,2))
This code return col-wise concatnated array, but i wana a reshaped array that concatnate row-wise, mean first row then second row then third and so on..... by considering it only one column. plzzz help me and make correction in given code
thanx

采纳的回答

bym
bym 2011-5-7
Bin_array=reshape(B',1,[])'

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by