Plot 2d line from matrix data

조회 수: 15 (최근 30일)
Italy
Italy 2013년 3월 6일
댓글: Rozh Al-Mashhdi 2018년 1월 7일
Hey,
I have 2d matrix data (100X2) and I want to plot line from it.
For example: each row is one point, (1,1) = X & (1,2) = Y. From all those 100 points I want to draw a line.
10x,
Itay

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 3월 6일
편집: Azzi Abdelmalek 2013년 3월 6일
plot(A(:,1),A(:,2))
Example
A=[1:100;rand(1,100)]'
plot(A(:,1),A(:,2))
  댓글 수: 3
Jan
Jan 2013년 3월 6일
What does "10x" mean?
Rozh Al-Mashhdi
Rozh Al-Mashhdi 2018년 1월 7일
I think 10x is some slang/shorthand for "thanks" (tenx)

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by