フィルターのクリア

how to plot image for rgb values in matlab?

9 ビュー (過去 30 日間)
surendra gupta
surendra gupta 2018 年 2 月 16 日
回答済み: Rik 2018 年 2 月 16 日
I have RGB values for green, red and blue. Now I want to convert this RGB values into color image and plot all the colors in the same plot starting from red, then green and blue along the x-axis.
  2 件のコメント
Guillaume
Guillaume 2018 年 2 月 16 日
Neither of the two things you are asking are clear. What does "convert this RGB values into color image" actually mean?
Here are two RGB values:
rgb(1, :) = [0 1 0]
rgb(2, :) = [1 0 0]
What sort of image would you want from that?
Similarly, what does " plot all the colors in the same plot" actually mean? What gets plotted against what?
surendra gupta
surendra gupta 2018 年 2 月 16 日
Sir, I have attached a file representing how my plot should look like. Say for (x,y) = (1,1) - I have RGB values of black, for (x,y) = (1,2) - I have RGB values of blue and so on. Now I have to plot all of them in a single plot as represented in the attached figure. Please let me know how to do that using matlab.

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

回答 (1 件)

Rik
Rik 2018 年 2 月 16 日
Have a look at the image function

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by