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.

回答(1 个)

Torsten
Torsten 2022-11-19

2 个评论

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))

请先登录,再进行评论。

类别

产品

版本

R2022b

评论:

2022-11-19

Community Treasure Hunt

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

Start Hunting!

Translated by