2D matrix to 3D cylinder

조회 수: 1 (최근 30일)
martin martin
martin martin 2019년 3월 4일
댓글: martin martin 2019년 3월 7일
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

채택된 답변

Matt J
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
Benjamin Kraus 2019년 3월 7일
Can't you just call colormap and specify the desired colormap?
colormap(jet)
martin martin
martin martin 2019년 3월 7일
Ben, thank you.
c3.PNG

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Blue에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by