|
Nehal,
imageArray = reshape(imageArray',9,1);
note: I transposed the matrix pre-reshaping it.
"Nehal " <arnab620@yahoo.com> wrote in message <i3ersm$pkr$1@fred.mathworks.com>...
> I have an image array. I want to convert the elements into matrix or vector. The matrix will have only 1 column and the number of row will be equal to the number of elements of that image.
>
> For example:
> if the binaryImage array has some values like this....
>
> imageArray = 1 2 3
> 4 5 6
> 7 8 9
>
> I want to convert the imageArray into a matrix like...
>
> v= [1
> 2
> 3
> 4
> 5
> 6
> 7
> 8
> 9]
>
> Can anyone help me..? plz..
|