How to display a matrix as a picture?

I want to save a matrix in the matlab as an image to use in microsoft word. Let's say
A= [0 1; 2 3]
I want to save this (or display it) as a picture like this:
Is it possible to do?

Respuestas (1)

Sandro Lecci
Sandro Lecci el 14 de Jun. de 2018
Hi,
What about the function imagesc ?
A = [0 1; 2 3];
imagesc(A);
colorbar;
Best,

1 comentario

Ege Gurtan
Ege Gurtan el 14 de Jun. de 2018
Sorry but this code gives the following
I need a picture like this

Iniciar sesión para comentar.

Categorías

Más información sobre Operators and Elementary Operations en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 14 de Jun. de 2018

Comentada:

el 14 de Jun. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by