Hgtransform and makehgtform at fsurf

2 次查看(过去 30 天)
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))

采纳的回答

Matt J
Matt J 2019-3-13
编辑:Matt J 2019-3-15
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)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Object Containers 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by