I'm new to MatLab, I have a Matrix:
first column: time in min, eg, 0, 0.5,1,1.5,2…up to 105,5 min
second column: distance measures
How can I plot the average values of distance each 5 min I wrote this:
data_to_plot = mean(data((i-1)*5:i*5))
I got the answer “Subscript indices must either be real positive integers or logicals.”