I think I have found the commands to get started on what I would like to display. I am trying to set the xvalues along the x axis as -3pi to 3pi as an example, and set the y values to the YTick array below. I am not sure what I am doing wrong. I keep getting the error: Array indices must be positive integers or logical values. Am I using XTick, YTick, XTicklabel correctly?
>> clear ax
>> ax = gca;
%c = ax.Color;
%ax.Color = 'blue';
ax.XTick([-3*pi -2*pi -pi 0 pi 2*pi 3*pi]);
ax.XTicklabel({'-3\pi','-2\pi','-\pi','0','\pi','2\pi','3\pi'});
ax.YTick([-1 -0.8 -0.2 0 0.2 0.8 1]);
%set(gca,'XTick', ax.xtic, 'XTickLabel', ax.xticlab, 'YTick', ax.ytic);
Array indices must be positive integers or logical values.