Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

To resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

colormapeditor

Asked by Razvan on 16 Nov 2011

Hi,

I would like to use colormapeditor inside a GUI, and I want a pause in the program that waits for me to finish with the colormap settings and then to continue in the code. I don't know how to make this pause, and to test if the user pressed OK, apply or other button inside colormapeditor. In other words I want to get the button that was pressed and then to continue in the code. Any suggestions?

Thanks,

Razvan

0 Comments

Razvan

Tags

Products

No products are associated with this question.

1 Answer

Answer by Naz on 16 Nov 2011

Quick way to fix the problem is:

colormapeditor;
pause;
%conntinue your code

With this, after the colormap editor appears, you can do whatever you need, then close it by clicking OK and after press any key to resume the program.

1 Comment

Razvan on 16 Nov 2011

Thanks. I knew this was an option. Is there another way to continue the code, exactly when you press some button in the |colormapeditor| window, without needing to press another button after that? And how can I test if the user pressed Yes, Apply, or Cancel in the |colormapeditor| window?

Razvan

Naz

Contact us