How to redraw plot automatically?

4 次查看(过去 30 天)
JoE
JoE 2013-3-14
Hi guys. I have a question about redrawing plot automatically. For example, I have function
y=a*sin(bx+c)+d
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.

回答(1 个)

Walter Roberson
Walter Roberson 2013-3-14
set the Callback property of the uicontrol('Style','edit') to trigger the redraw.

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by