Double Inequality 3Dplot

3 views (last 30 days)
Hmm! on 26 Dec 2021
Commented: John D'Errico on 17 Jan 2022
Is there a way to have a 3D plot on say and clearly see the bounded region?
Hmm! on 26 Dec 2021
Just anything that gets the job done!

Sign in to comment.

Accepted Answer

John D'Errico
John D'Errico on 26 Dec 2021
Edited: John D'Errico on 26 Dec 2021
Easy peasy.
lb = [1 1 1];
ub = [2 2 2];
grid on
box on
plotregion can be found on the file exchange for free download.
John D'Errico
John D'Errico on 17 Jan 2022
Could this have been done in another way? Yes, Of course. That the tool I show does what it does using MATLAB itself proves that it can be done. In fact, I can think of at least 2 or 3 easy ways you could do this using other tools.
Could you have used tools like patch to plot those facets? OF COURSE. Trivially so. If you cannot see all 8 vertices, then you need to remember to make the facets of the surface translucent, otherwise you cannot see through the front facets to see those that are hidden.
But the solution I showed does exactly what you asked to do.

Sign in to comment.

More Answers (0)




Community Treasure Hunt

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

Start Hunting!