my data matrix has 19 rows and 396 columns.
row 1=[0 -1 0 1......]
row 2=[1 0 -1 1 1 0...]
.
.
row 19=[1 -1 0 1 0 0..]
how should I code this using plot function in Matlab ? given below:
if(bit==1)
X axis= X++;
Y axis= Y++;
/*graph will show increment by 1 */
else if (bit==-1)
X axis = X++;
Y axis = Y--;
/* graph will show decrements by 1*/

cumsum(twice),ndgridandsurf. Or justimshow