how plot sequences?

조회 수: 6 (최근 30일)
huda nawaf
huda nawaf 2012년 5월 14일
hi, I have sum of sequences of integer values, i need to draw it to see the similarity among them.
for ex. x= [1 2 5 6 7 0 0; 2 3 4 9 1 8 6 ; 56 23 89 3 0 0]; i used : plot(1:7,x(1:3,1:7))
but this is nor give me clear relations among these sequences
what is the best way to do that? thanks in advance

채택된 답변

Honglei Chen
Honglei Chen 2012년 5월 14일
Are you trying to compare different rows? If so, use
plot(1:7,x.')
or simply
plot(x.')
  댓글 수: 1
Walter Roberson
Walter Roberson 2012년 5월 14일
Right, notice the transpose that Honglei used. When a matrix of y values are given to plot, it plots down the columns, so if your data is by rows, you need to transpose it.

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

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by