Hgtransform and makehgtform at fsurf

2 views (last 30 days)
ibabinaca
ibabinaca on 13 Mar 2019
Edited: Matt J on 15 Mar 2019
Hello,
I have a cone ecuation:
conefun = @(x,y,z0,phi) z0 + sqrt((x-x0).^2 + (y-y0).^2)*cotd(phi/2);
fsurf(@(x,y) conefun(x,y,10,90))

Accepted Answer

Matt J
Matt J on 13 Mar 2019
Edited: Matt J on 15 Mar 2019
If the cone has the orientation you want, but not the location , you can add a translation to put it where you want,
set(t,'Matrix', makehgtform('translate',[tx ty tz],'xrotate',pi)

More Answers (0)

Categories

Find more on Object Containers in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!