I have a similar question as asked back on Jan 21, 2010. But being a rank beginner, I couldn't understand or implement that answer. I have a large dataset of biological samples that I plot out as a graph, one sample at a time. The data are in an array with columns = sample number, and rows = measurements taken over time. I wrote a simple script to plot each sample and move forward through the dataset one sample at a time merely by hitting any key. For instance, here is my script for 10 samples measured 600 times (10 columns, 600 rows):
for k = 1:10
trace = (data(:,k));
title(['cell # ',num2str(k),'']);
Is there a simple way to alter this script so that I can scroll backward as well as forward?