how do i plot a graph with pixel matrix?

>> 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일

0 개 추천

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일

0 개 추천

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.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

질문:

2014년 7월 9일

댓글:

2014년 7월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by