Using the axis Command to Define Coordinate Axis Display Range - Syntax and Implementation
The axis command syntax axis([xmin xmax ymin ymax]) defines coordinate axis ranges. For your example, set ymin=0, ymax=0.5, with xmin and xmax at period endpoints, then plot(x,y). Includes MATLAB code implementation details and visualization techniques.