ignore spesific values in my plot

2 views (last 30 days)
alexis papadopoulos
alexis papadopoulos on 6 Dec 2017
Answered: Adam on 6 Dec 2017
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.

Accepted Answer

Adam
Adam on 6 Dec 2017
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.

More Answers (0)

Categories

Find more on Dates and Time in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!