フィルターのクリア

what does this command plots?

1 回表示 (過去 30 日間)
Adithya Chakilam
Adithya Chakilam 2017 年 1 月 24 日
コメント済み: Adam 2017 年 1 月 24 日
plot(1:size(image,1) , mean(Image,2), 'g' );
  1 件のコメント
Adam
Adam 2017 年 1 月 24 日
Surely the simplest way to understand is just to run the code?!

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

回答 (1 件)

the cyclist
the cyclist 2017 年 1 月 24 日
編集済み: the cyclist 2017 年 1 月 24 日
Assuming that image is an NxN array, this command plots a single green line that
  • along the x-axis, goes from 1 to N
  • along the y-axis, goes along the mean value of the 1st through Nth rows
See details in the documentation for plot.
(Also, I assume you mean that "image" and "Image" are the same variable, and just did a typo in capitalization.)
  2 件のコメント
Adithya Chakilam
Adithya Chakilam 2017 年 1 月 24 日
編集済み: Adithya Chakilam 2017 年 1 月 24 日
can you explain me what does number after that filename represents?
the cyclist
the cyclist 2017 年 1 月 24 日
For the size command, it is specifying the dimension of the array that want the size of. In this case, you are specifying that you want the size in the first dimension, which is along the columns.
Similarly, for the mean command, it is specifying that you want the mean along dimension 2.

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

Community Treasure Hunt

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

Start Hunting!

Translated by