MATLAB: Ignore spesific values in the plot

ignoreignore valuesvalues

how can i ignore one spesific value before i plot my funcion? for example i have to plot
y(i)=282*sqrt(1+cos(x(i))/sin(x(i)).^2) , x=[-0.13*pi:0.01:0.13*pi]
but i dont want the value for x=0.

Best Answer

x=[-0.13*pi:0.01:0.13*pi];
x = setdiff( x, 0 );
would be one way. Just creating x in the first place without it containing 0 would be another.
Related Question