필터 지우기
필터 지우기

A cancel button, to do nothing

조회 수: 2 (최근 30일)
Praveen Choudhury
Praveen Choudhury 2015년 12월 18일
댓글: Image Analyst 2015년 12월 18일
I have a gui(called main) through which I open another gui(called config). When I press ok button in the config gui, it performs and operation and the result is updated on the main gui. I want to add a cancel button in my config gui, so that when I press cancel, it should do nothing at all and close the gui.

채택된 답변

Image Analyst
Image Analyst 2015년 12월 18일
In the call back for that button, just delete the variable that is the handle to the gui and it will vanish.
  댓글 수: 3
Praveen Choudhury
Praveen Choudhury 2015년 12월 18일
It closes the gui and does nothing but I get an error in the command window.
Attempt to reference field of non-structure array.
Error in config_window>config_window_OutputFcn (line 90)
varargout{1} = handles.output;
Image Analyst
Image Analyst 2015년 12월 18일
You never assigned that variable. But you don't need it. Just delete the line.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Parallel for-Loops (parfor)에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by