: operator when used in plot function

2 visualizaciones (últimos 30 días)
Mike Scott
Mike Scott el 22 de Dic. de 2014
Comentada: Mike Scott el 22 de Dic. de 2014
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

Respuesta aceptada

the cyclist
the cyclist el 22 de Dic. de 2014
Editada: the cyclist el 22 de Dic. de 2014
All rows of the Nt 'th column of Tanal.
  1 comentario
Mike Scott
Mike Scott el 22 de Dic. de 2014
Ah OK, I see now. So by removing the : operating it plots all rows of data within the Tanal matrix. Thanks for your help

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Annotations en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by