MATLAB: These two codes produce different graphs? How to make the second graph be like the first

Control System Toolboxplot step graphs discrete

Why these two codes produce different graphs? How can I make the second graph be like the first?
1st:
t=0:0.3:10;
step(c2d(tf(1,[1 1]),0.3),t);
2nd:
t=0:0.3:10;
[y,t]=step(c2d(tf(1,[1 1]),0.3),t);
plot(t,y)

Best Answer

Fangjun's correct. To get the same plot, use stairs:
stairs(t,y)
HTH,
Arnaud