: operator when used in plot function

3 visualizzazioni (ultimi 30 giorni)
Mike Scott
Mike Scott il 22 Dic 2014
Commentato: Mike Scott il 22 Dic 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

Risposta accettata

the cyclist
the cyclist il 22 Dic 2014
Modificato: the cyclist il 22 Dic 2014
All rows of the Nt 'th column of Tanal.
  1 Commento
Mike Scott
Mike Scott il 22 Dic 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

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by