필터 지우기
필터 지우기

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 CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by