MATLAB: Using for loop for plotting from a timetable

for loopplottingtime seriestimetable

Attached is a sample of my data that I would like to plot. I would like to use for loop to automate plotting from the timetable directly. Below is my code, however, it seems there is some problem. any thoughts would be appreciated. I would also like to get a handle to enhance the plot further.
for ii=1:2
plot(TT2.Date,TT2.(:,ii))
end

Best Answer

plot(TT2.Date, TT2{:,ii})
... and remember the "hold on"
Related Question