How do you plot y = cos(pi/4)
The correct answer for How do you plot y = cos(pi/4)
Choose upper and lower limits of x as a and b. Choose the desired number of plot points as n.
x = linspace(a,b,n);
y = repmat(cos(pi/4),1,n);