The data has 12 rows and, instead of the N-th row 1...12, the plot should have a column going from 6...89 like the first column of the data. Then the X-coordinate is for the other two rows. The docs about spy mentions nothing about the axis so tried the following but not working
>> spy(C(neg,:))
>> axis([1 31 6 89]); spy(C(neg,:)) #xmin xmax ymin ymax
>> axis on; axis([1 31 6 89]); spy(C(neg,:))
>> axis on; a=spy(C(neg,:)); axis(a,[1 31 6 89]);
Error using spy
Too many output arguments.
so
How to visualise the sparse data with rightly-labelled axis?
Example
Data
6 2 7 11 4 7 26 9 7 36 12 7 44 15 7 55 21 7 60 16 11 7 62 23 7 86 28 7 87 27 7 89 25 11 7
This plot shows the vertical labels wrongly 0 2 4 ... 12 instead of 6 7 ... 89