フィルターのクリア

conversion of array to vector

5 ビュー (過去 30 日間)
Raman
Raman 2013 年 3 月 9 日
編集済み: Prakhar Vishnoi 2018 年 3 月 15 日
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....
Mean=[];
Mean=mean2(inpImage);
disp(Mean);
how i can convert the above amaean array to vector?
  1 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 3 月 9 日
What do you mean?

サインインしてコメントする。

回答 (1 件)

Miroslav Balda
Miroslav Balda 2013 年 3 月 9 日
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 件のコメント
Prakhar Vishnoi
Prakhar Vishnoi 2018 年 3 月 15 日
編集済み: Prakhar Vishnoi 2018 年 3 月 15 日
p={'dxw','ff'};
p(1)
cell2mat(p(1))
%try the code above to understand
%Thanks

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by