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

采纳的回答

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)

请先登录,再进行评论。

更多回答(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