: operator when used in plot function

조회 수: 2 (최근 30일)
Mike Scott
Mike Scott 2014년 12월 22일
댓글: Mike Scott 2014년 12월 22일
I would just like to know what the : operator does when used to plot in the following context:
plot(x,Tanal(:,Nt),
I can see that x is plot against Tanal for some values of Nt but cannot quite work out which is refers to.
Thanks

채택된 답변

the cyclist
the cyclist 2014년 12월 22일
편집: the cyclist 2014년 12월 22일
All rows of the Nt 'th column of Tanal.
  댓글 수: 1
Mike Scott
Mike Scott 2014년 12월 22일
Ah OK, I see now. So by removing the : operating it plots all rows of data within the Tanal matrix. Thanks for your help

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

추가 답변 (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