Plotting thickness data to a cylinder.
이전 댓글 표시
First off, I am completely new to MATLAB and not really sure where to start.
I have large datasets (approximately 170,000 points) that I am trying to plot to a cylinder surface. It is Ultrasonic thickness readings taken about the circumference of a pipe.
I have X, Y, Z coordinates for every point and would like to display the thickness reading value as a colormap, any recommendations would be greatly appreciated.
*Edit..... I've attached a photo of the original excel data, rows represent circumferential position, columns length about the pipe axis and the color pallet represents remaining wall thickness (in this instance between 12mm-20mm)
Ideally I would like to be able to plot to be a representative image of the pipe itself as pictured (that was just cheated by applying an image of the excel data to a pipe section as a material in AutoCAD)
채택된 답변
추가 답변 (1개)
Ameer Hamza
2020년 5월 1일
편집: Ameer Hamza
2020년 5월 1일
I don't understand what you are trying to do inside the for-loop, but the following code shows how to map a texture on a cylinder surface. I used an image as a texture map. You can adapt it according to your need.
im = imread('peacock.jpg');
r = 5;
[X,Y,Z] = cylinder(r, 100);
h = 20;
Z = Z*h;
surf(X, Y, Z, flip(im), 'FaceColor', 'texturemap', 'EdgeColor', 'none');
daspect([1 1 1])

카테고리
도움말 센터 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
