2D matrix to 3D cylinder
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
martin martin
am 4 Mär. 2019
Kommentiert: martin martin
am 7 Mär. 2019
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 Kommentare
Akzeptierte Antwort
Matt J
am 4 Mär. 2019
Bearbeitet: Matt J
am 4 Mär. 2019
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 Kommentare
Benjamin Kraus
am 7 Mär. 2019
Can't you just call colormap and specify the desired colormap?
colormap(jet)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Blue finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!