How can I plot earth_sphere(varargin) correctly in an Matlab app tab

2 Ansichten (letzte 30 Tage)
Andre Röthling
Andre Röthling am 18 Okt. 2021
Beantwortet: Benjamin Kraus am 17 Nov. 2021
How can I plot earth_sphere(varargin) in an Matlab app tab. I dont know how to include it to my Code. I tried to access an UIAxes (UIAxes5) Object i created bevor on that tab, but it changes also my UIAxes4 and the plot in UIAxes5 is just 2D.
methods (Access = private)
function results = func(app)
earth_sphere(app.UIAxes5);
end
end

Antworten (1)

Benjamin Kraus
Benjamin Kraus am 17 Nov. 2021
Two things you can try:
  1. Set the NextPlot property on the UIAxes to 'replace' before calling earth_sphere (app.UIAxes5 = 'replace').
  2. Call view(app.UIAxes5,3) after calling earth_sphere.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by