フィルターのクリア

How do I move the center of my cyclinder to a specific point?

1 回表示 (過去 30 日間)
Victor Falola
Victor Falola 2022 年 10 月 27 日
回答済み: Torsten 2022 年 10 月 27 日
Hi, I plotted a cylinder using this code:
r = 5e-7;
[X,Y,Z] = cylinder(r);
h = 20e-7;
Z = Z*h;
cyl = surf(X,Y,Z,'FaceColor','none');
rotate(cyl, [0 1 0], 90)
how do i move the cyclinder so its center becomes [0 0 0]?
Thanks.

採用された回答

Torsten
Torsten 2022 年 10 月 27 日
r = 5e-7;
[X,Y,Z] = cylinder(r);
h = 20e-7;
Z = Z*h - 2*r;
cyl = surf(X,Y,Z,'FaceColor','none');
rotate(cyl, [0 1 0], 90)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeScatter Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by