How to display a matrix as a picture?

2 vues (au cours des 30 derniers jours)
Ege Gurtan
Ege Gurtan le 14 Juin 2018
Commenté : Ege Gurtan le 14 Juin 2018
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?

Réponses (1)

Sandro Lecci
Sandro Lecci le 14 Juin 2018
Hi,
What about the function imagesc ?
A = [0 1; 2 3];
imagesc(A);
colorbar;
Best,
  1 commentaire
Ege Gurtan
Ege Gurtan le 14 Juin 2018
Sorry but this code gives the following
I need a picture like this

Connectez-vous pour commenter.

Catégories

En savoir plus sur Numeric Types dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by