Plot Modes of a cylinder in 3D

조회 수: 1(최근 30일)
ELizabeth Sharp
ELizabeth Sharp 2021년 10월 14일
댓글: ELizabeth Sharp2021년 10월 14일
Up above is the modes of a cylinder stretched out flat for 200 degrees around the cylinder. Data is arranged in a 3D matrix: Distance x angle x displacement(at a particular time step).
被覆盖的数据量的200度cylinder. I would like to show this data on a cylinder instead of it being flat. So far I have converted the polar data to cartesian however I am unsure how to plot this data onto a cylinder for 200 degrees.
Will I need to zero the remaining 160degrees as I do not have data for this?

채택된 답변

KSSV
KSSV 2021년 10월 14일
댓글 수: 9
ELizabeth Sharp
ELizabeth Sharp 2021년 10월 14일
不幸的是我有一些wi问题th the code:
Arrays have incompatible sizes for this operation.
Error in main (line 43)
U = sqrt(UX.^2+UY.^2+UZ.^2);
The components of displacement for x and y were 41x58, the cylinder was scanned in 5mm by 5 degrees squares around from 0 to 200 degrees. So I have reordered the x and y arrays to 2378 x 1.
However the z compnent is 0:5:285. This is 0mm to 285mm in 5mm steps.
I am aware the array dimensions disagree however this is the data structure.
Using your mesh generation code I have applied the data to a surf plot, without the deformation.

댓글을 달려면 로그인하십시오.

추가 답변(0개)

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by