フィルターのクリア

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

4 ビュー (過去 30 日間)
Galo
Galo 2018 年 11 月 21 日
回答済み: Image Analyst 2018 年 11 月 21 日
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

回答 (1 件)

Image Analyst
Image Analyst 2018 年 11 月 21 日
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.

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by