Professional Documents
Culture Documents
Exp 6
Exp 6
% This examples will have X(omega) as completely real but since there might
% be small values of imaginary part, we completely set them to zero
X_omega = real(X_omega);
% The x-axis is being changed in the plot to have tick points at different
% values of pi
set(gca,'xtick',[-4*pi:pi:4*pi])
set(gca,'xticklabels',{'4\pi','3\pi','2\pi','\pi','0','\pi','2\pi','3\pi','4\pi'})