How do you plot a wave equation in Matlab?

To plot a wave equation in Matlab, you can use the following code:

t = 0:0.01:2*pi;
y = sin(t);
plot(t,y);