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.

 채택된 답변

Adam
Adam 2017년 12월 6일

1 개 추천

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.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Line Plots에 대해 자세히 알아보기

질문:

2017년 12월 6일

답변:

2017년 12월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by