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!