You can use the comet() function if you manipulate the data a bit.
a=[0 1 0 1 0 1 0 0 1 1 0];
aq = interp1(x,a,xq,'previous');
There is also a similar function called animatedline() which I have never tested. Or as a third, perhaps simplest solution, plot point-by-point in a for-loop using pause(t) in every loop.