Plotting multiple quadrics in 3D

Hello everyone. For my project, I want to have a matlab program that will plot 2 quadrics in 3 dimensions. I tried to use isosurface which is good for visual representation. But I'd like to improve it by implementing slider(s) to change coefficient(s) of quadric(s) and the most important thing: plot the intersection of these quadrics. I tried some of the other alternatives like defining F3 = F1-F2, but it's not really the intersection as the intersection should be F1-F2 = 0. Thank you for the help in advance.

Answers (1)

Torsten
Torsten on 19 Nov 2022

2 Comments

This is a good guide to plot 1 quadric. It is not "friendly" to draw 2 quadrics. May be I'm too bad at plotting and understanding how it works in MATLAB.
At least it should be the correct tool to draw the intersection of two quadratics:
fimplicit3(@(x,y,z) Quadratic1(x,y,z)-Quadratic2(x,y,z))

Sign in to comment.

Products

Release

R2022b

Asked:

on 19 Nov 2022

Commented:

on 19 Nov 2022

Community Treasure Hunt

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

Start Hunting!