Hgtransform and makehgtform at fsurf

2 vues (au cours des 30 derniers jours)
ibabinaca
ibabinaca le 13 Mar 2019
Modifié(e) : Matt J le 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))

Réponse acceptée

Matt J
Matt J le 13 Mar 2019
Modifié(e) : Matt J le 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)

Plus de réponses (0)

Catégories

En savoir plus sur Object Containers dans Help Center et File Exchange

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by