필터 지우기
필터 지우기

Hgtransform and makehgtform at fsurf

조회 수: 1 (최근 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 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