2D matrix to 3D cylinder
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello,
could anyone advise me how to make a cylinder from 2D matrix of a number of rows and columns eg x = rand(5,10). And then interpolate values around its perimeter and display it?
Best regards
댓글 수: 0
채택된 답변
Matt J
2019년 3월 4일
편집: Matt J
2019년 3월 4일
If you have the Image Processing Toolbox, you would use the warp command, e.g.,
[X,Y,Z] = cylinder(ones(1,5),100);
warp(X,Y,Z,rand(5,10));
댓글 수: 4
Benjamin Kraus
2019년 3월 7일
Can't you just call colormap and specify the desired colormap?
colormap(jet)
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Blue에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!