Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Dynamic Plot
Date: Sun, 30 Nov 2008 23:20:20 +0000 (UTC)
Organization: PhysioSonics Inc
Lines: 12
Message-ID: <ggv73j$78h$1@fred.mathworks.com>
References: <gg20d1$i9l$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1228087220 7441 172.30.248.35 (30 Nov 2008 23:20:20 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 30 Nov 2008 23:20:20 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1129061
Xref: news.mathworks.com comp.soft-sys.matlab:503973


"Mihir Mudholkar" <mihir.mudholkar@gmail.com> wrote in message <gg20d1$i9l$1@fred.mathworks.com>...
> Hi,
> 
> I am trying to plot an equation ax^2 + bx + c vs. x and I want to have sliders for parameters a, b and c and see how the plot varies with the parameters. The equation I am using is a lot more complicated but if somebody can please tell me how to add sliders, I can extend it to my problem. Its a curve fitting problem, and I am trying to fit the equation to some data manually using the sliders.
> 
> Regards,
> Mihir

There is a thorough discussion and example of how to implement exactly what you describe in this book:
http://www.mathworks.com/support/books/book13266.html

Alternatively, you can figure out how to do it by looking at the documentation for uicontrol (property 'Style' = 'Slider').