Elliposid number of faces

1 view (last 30 days)
HANZU OLIVIU-MIHAI
HANZU OLIVIU-MIHAI on 23 Jan 2022
Commented: Matt J on 23 Jan 2022
Hello can somebody help me to understand how i can change the number of faces of an ellipsoid with a slider in app designer
  2 Comments
Matt J
Matt J on 23 Jan 2022
An ellipsoid is a curved surface. It shouldn't have any faces.

Sign in to comment.

Answers (1)

Matt J
Matt J on 23 Jan 2022
Edited: Matt J on 23 Jan 2022
You would just access the Value property of the slider in its callback. Then use that value to replot the ellipsoid.
  10 Comments
HANZU OLIVIU-MIHAI
HANZU OLIVIU-MIHAI on 23 Jan 2022
% Value changed function: NSlider
function NSliderValueChanged(app, event)
N = app.NSlider.Value;
ellipsoid(app.xc,app.yc,app.zc,app.xr,app.yr,app.zr,app.N);
end
Matt J
Matt J on 23 Jan 2022
Don't know what app.N is here. Presumably you meant
ellipsoid(app.xc,app.yc,app.zc,app.xr,app.yr,app.zr, N);

Sign in to comment.

Categories

Find more on Develop uifigure-Based Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!