About 3D surface plot

1 visualización (últimos 30 días)
Akand Islam
Akand Islam el 25 de Feb. de 2015
Comentada: Akand Islam el 19 de Mzo. de 2015
I have simple question on 3D plot. I have dataset, a = 100*1*51. When I give command surf(bb) the message shows CData must be an M-by-N matrix or M-by-N-by-3 array. Please guide me where is problem? I am also attaching my raw data file.
Regards, Akand

Respuesta aceptada

Shoaibur Rahman
Shoaibur Rahman el 26 de Feb. de 2015
a = ...your 100 x 1 x 51 data;
bb = squeeze(a);
surf(bb)
  3 comentarios
Star Strider
Star Strider el 26 de Feb. de 2015
@Akand — If Shoaibur’s Answer solved your problem, please Accept it.
Akand Islam
Akand Islam el 19 de Mzo. de 2015
However, I have hdf file whose size say, 32 50 50. "squeeze" command doesn't help to produce surface plot by "surf".
-- Akand

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots 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