How can I access the last values of a list using end?

2 visualizzazioni (ultimi 30 giorni)
I have a list, let's say length(list) = 40 how can I access the value which indice is 37 using end ?
(in my case I don't know the length of the list,that was just an example)
Thank you in advance for your answers.

Risposta accettata

Bruno Luong
Bruno Luong il 15 Set 2020
list(end-3)

Più risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by