conversion of array to vector

10 views (last 30 days)
Raman on 9 Mar 2013
Edited: Prakhar Vishnoi on 15 Mar 2018
i want to know how can we convert i list of array to a vector form
plz tell me by writing some piece of code....
how i can convert the above amaean array to vector?

Answers (1)

Miroslav Balda
Miroslav Balda on 9 Mar 2013
The first command is useless. Suppose inpIamage is a matrix, the character of Mean depends of your function mean2. Should function mean2 be equal mean, the variable Mean would be row vector. The column vector you gain by Mean(:).
If the function mean2 yields Mean being a cell array, you should use a conversion of the array to real vector, say Mean{:} of cell2mat function.
  1 Comment
Prakhar Vishnoi
Prakhar Vishnoi on 15 Mar 2018
Edited: Prakhar Vishnoi on 15 Mar 2018
%try the code above to understand

Sign in to comment.


Find more on Data Type Conversion in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!