MATLAB Answers

the streamline plot does not clear in an App while contour does. How do I clear the streamline plot?

조회 수: 2(최근 30일)
Dan Green
Dan Green 2021년 7월 27일
답변: Dan Green 2021년 7월 27일
[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')

Community Treasure Hunt

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

Start Hunting!

Translated by