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 Center および File ExchangeBlue についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by