how to prevent plotting more curve than the axis limit in app uiaxes
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
app.Curve_sim.XLim=[-(b1+2) 0];
app.Curve_sim.YLim=[0 (a1+2)];
one can find more plots below 0@Y while the YLim is still above 0
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1150050/image.jpeg)
0 Kommentare
Antworten (1)
Simon Chan
am 9 Okt. 2022
Put those data below your limit to NaN.
x=1:50;
y=randi([-5,25],1,50);
threshold = 0;
y(y<threshold)=NaN; % Set those value below your limit to NaN
plot(x,y);
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!