How to print array value and it's undex?
Afficher commentaires plus anciens
I have an array of single column data, array length of about ~8000 members.
I want to print some data interval from array, so id array is named 'data', I use a single line
data(6500:end)
and this outputs a list of elements starting of element#6500 to the end of array.
How I can print element index along with it's value?
F.e. initially I have output:
100
105
103
120
.......
and I want to see something like :
6500 100
6501 105
6502 103
6503 120
......................
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!