Effacer les filtres
Effacer les filtres

How can I Plot a matrix in a new figure window?

4 vues (au cours des 30 derniers jours)
Galo
Galo le 21 Nov 2018
Hello everybody, I have a matrix like the one below and I want to show it in a new figure window, I don't want it to appear just in the command window. I don't know if that is possible to do in Matlab.
The second question is if it is possible to display some columns or rows of a matrix in the command window with different color, for example I would like the first and third column to be red, is that possible?
T =
1 1 0 0 0 0 0 1 0 1
0 0 0 0 0 0 0 1 0 0
0 0 1 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 1 0 0 0
0 1 0 0 1 0 0 1 0 0
0 1 0 1 0 0 0 0 0 0
0 0 0 1 0 0 0 0 0 1
0 0 0 0 0 0 0 0 0 0
0 0 0 1 1 0 1 1 0 0
1 0 0 0 0 0 0 0 0 0
0 0 1 1 0 0 0 0 1 0
0 1 0 0 0 1 0 0 0 0
1 0 1 0 0 1 1 0 0 1
0 0 1 0 1 0 0 0 1 0
0 0 0 0 0 0 0 0 1 1
0 0 0 0 1 0 1 0 0 0
1 0 0 0 0 1 0 0 0 0
0 0 0 0 0 1 0 0 1 0

Réponses (1)

Image Analyst
Image Analyst le 21 Nov 2018
You could call figure(), followed by uicontrol(), or else use GUIDE to place a static text label on the window. Then use sprintf() to create a string to send to the text control.

Catégories

En savoir plus sur Migrate GUIDE Apps 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