2D matrix to 3D cylinder

1 visualización (últimos 30 días)
martin martin
martin martin el 4 de Mzo. de 2019
Comentada: martin martin el 7 de Mzo. de 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

Respuesta aceptada

Matt J
Matt J el 4 de Mzo. de 2019
Editada: Matt J el 4 de Mzo. de 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 comentarios
Benjamin Kraus
Benjamin Kraus el 7 de Mzo. de 2019
Can't you just call colormap and specify the desired colormap?
colormap(jet)
martin martin
martin martin el 7 de Mzo. de 2019
Ben, thank you.
c3.PNG

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Blue en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by