How would i make line x vectors to be even to the rest. To form three different lines on the graph. Also how do you make the points show up with like a circle, square and x.
x = linspace(5,(-2*pi),(2*pi));x1 = linspace((-2*pi),(2*pi),10);x2 = linspace((-2*pi),(2*pi),20);y = sin(x);axis([-6, 6, 0, 1])plot(x,y, 'r')hold on plot(x1,y, 'g')hold on plot(x2,y, 'p')title('Plot Comparison of sin(x)')xlabel('x values')ylabel('sin(x)')legend('5 points','10 points','20 points')
Best Answer