the streamline plot does not clear in an App while contour does. How do I clear the streamline plot?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
[u,v] = gradient(phi);
[strx, stry] = meshgrid(xmin:0.4:xmax,ymin:0.4:ymax); % where to draw the streamline
streamline(app.UIAxes2,x,y,u,v,strx,stry);
title(app.UIAxes2,'Streamlines')
xlabel(app.UIAxes2,'x')
ylabel(app.UIAxes2,'y')
0 Kommentare
Antworten (2)
Cris LaPierre
am 27 Jul. 2021
Add the following before creating your streamline plot.
cla(app.UIAxes2)
0 Kommentare
Siehe auch
Kategorien
Mehr zu Vector Fields 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!