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

New to MATLAB?

How to redraw plot automatically?

Asked by JoE

JoE (view profile)

on 14 Mar 2013

Hi guys. I have a question about redrawing plot automatically. For example, I have function


and I want to plot this function interactively. In GUI I'd have four edit boxes where I can put values of a, b, c, d. And after each change of value matlab would redraw the plot automatically (without using any buttons or something similar).

Is it possible to do this? Thank you for any response.



JoE (view profile)


No products are associated with this question.

1 Answer

Answer by Walter Roberson

Walter Roberson (view profile)

on 14 Mar 2013

set the Callback property of the uicontrol('Style','edit') to trigger the redraw.


Walter Roberson

Walter Roberson (view profile)

Contact us