フィルターのクリア

how can i save results from loop as a row vector?

2 ビュー (過去 30 日間)
arkedia
arkedia 2014 年 12 月 15 日
コメント済み: Image Analyst 2014 年 12 月 16 日
If I have a loop
for i=1:4
for j=2:5
c=x(:,[i,j])
v=mean(x)
end
end
I want to save the mean as a row vector for example mean=[5, 6, 7, 3, 8] How can i do it?
  3 件のコメント
Chad Greene
Chad Greene 2014 年 12 月 15 日
What is your x variable?
Image Analyst
Image Analyst 2014 年 12 月 16 日
What are i and j? Row and column??? What is c used for? Anything? If x is a 2D matrix, then c is two columns of x extracted into its own array, but what are your plans for c? If you do mean() like that then v is a row vector of all the means of the columns - one mean for each column in the image.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeImages についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by