how do i plot a graph with pixel matrix?

1 回表示 (過去 30 日間)
Tommy
Tommy 2014 年 7 月 9 日
コメント済み: Tommy 2014 年 7 月 15 日
>> Result
Result =
368.8496 41.0974
>> Result1
Result1 =
18.8326 96.5229
>> Result2
Result2 =
176.9228 205.3095
>> Result3
Result3 =
263.3483 139.8583

回答 (2 件)

SRI
SRI 2014 年 7 月 9 日
Hi For example just try this
>> A = imread('cameraman.tif');
>> plot(A)
  1 件のコメント
Tommy
Tommy 2014 年 7 月 11 日
if doing this for all 5 results, there will be 5 lines. im trying to obtain 5 points and make them link together. however this results are in a matrix form.

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


David Sanchez
David Sanchez 2014 年 7 月 11 日
It is not very clear what you want, but I think it could be this:
Result = [368.8496 41.0974];
Result1 = [18.8326 96.5229];
Result2 = [176.9228 205.3095];
Result3 = [263.3483 139.8583];
Results_array = [Result; Result1; Result2; Result3];
plot(Results_array(:,1),Results_array(:,2),Results_array(:,1),Results_array(:,2),'*')
  1 件のコメント
Tommy
Tommy 2014 年 7 月 15 日
erm ya something like that but in a graph point of view. connecting all the points together.

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by