: operator when used in plot function

1 次查看(过去 30 天)
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