The first plot that you mentioned is already at x=y=0. Use xgrid() command to plot grids for better visualization. Also, note that the sin() accepts arguments in radians. If you want to give inputs in degrees say 0, 90, 180, use sind() function. See the code below.
clf() t=0:1:360; y=sind(t); plot(t,y)