How to print array value and it's undex?
Show older comments
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
......................
Accepted Answer
More Answers (0)
Categories
Find more on Fixed-Point Designer in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!