Borrar filtros
Borrar filtros

Plot A Matrix

1 visualización (últimos 30 días)
Salvatore Turino
Salvatore Turino el 5 de Dic. de 2011
Is it possible to plot a matrix? i have a matrix 7x7 with valure around 1 and i want to show (maybe with different colour) how near are to 1 these value as it is a temperature or something like that.

Respuesta aceptada

Walter Roberson
Walter Roberson el 5 de Dic. de 2011
imagesc() would probably be better than surf() for this purpose.
imagesc(magic(7))
  1 comentario
Salvatore Turino
Salvatore Turino el 5 de Dic. de 2011
yes this is what i was looking for.
thank you

Iniciar sesión para comentar.

Más respuestas (1)

Sean de Wolski
Sean de Wolski el 5 de Dic. de 2011
maybe one of these?
doc mesh
doc surf
doc contour
  2 comentarios
Salvatore Turino
Salvatore Turino el 5 de Dic. de 2011
mmm can you give me an example?
Sean de Wolski
Sean de Wolski el 5 de Dic. de 2011
>> surf(magic(5))
magic(5) creates a 5x5 magic square, surf plots it as a surface. The more specific you can be with the results you're after, the better we can tune our answers.

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by