Hgtransform and makehgtform at fsurf

2 Ansichten (letzte 30 Tage)
ibabinaca
ibabinaca am 13 Mär. 2019
Bearbeitet: Matt J am 15 Mär. 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))

Akzeptierte Antwort

Matt J
Matt J am 13 Mär. 2019
Bearbeitet: Matt J am 15 Mär. 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)

Weitere Antworten (0)

Kategorien

Mehr zu Object Containers finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by