if(!exist("x", "var")) x = [0:0.1:2*pi]; endif y = cos(x); plot(x,y);