Code: clc; x = 0:0.01:2*pi; y = sin(x); z = cos(x); figure plot (x,y,x,z); xlabel ('X values'); ylabel ('Y values'); title ('Sample Plot'); legend ('x data','y data'); gridon; Output:
Leave a Comment