필터 지우기
필터 지우기

uisetcolor figure goes blank

조회 수: 3 (최근 30일)
Tek
Tek 2023년 10월 11일
편집: Tek 2023년 10월 11일
I have a veirg bug considering the uisetcolor function. I am using this function in a callback of my appdesigner app and for the first time uisetcolor is called it works fine. But after the first call, whenever the uisetcolor function is called it creates a blank figure with a title "Color" and nothing else. Weird thing, if I call the uisetcolor repeatedly (around 4 5 times changes everytime) it works once and then again becomes blank in further calls. I am using 2019a version (without updates due to offline computer) on Windows 10.
  댓글 수: 2
Adam Danz
Adam Danz 2023년 10월 11일
Please share the line where you're calling uisetcolor or give let us know if you are using any inputs.
Tek
Tek 2023년 10월 11일
편집: Tek 2023년 10월 11일
First I have used it without any input but since blank screen only have option to close and without any input function doesn't return any value, I have decided to use it with previous color o f the button. The code snippet:
function results = ColorPicker(app, buttonnumber) %I have several buttons that I will use same color pick function
PickedColor = uisetcolor(ColorArray(buttonnumber, :)); % The different colors of the buttons are stored in rows of ColorArray as R G B triplets
ColorArray(buttonnumber, :) = PickedColor;
results = now;
end

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by