Hgtransform and makehgtform at fsurf

3 ビュー (過去 30 日間)
ibabinaca
ibabinaca 2019 年 3 月 13 日
編集済み: Matt J 2019 年 3 月 15 日
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 Center および File ExchangeObject Containers についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by