How to use Manipulate->Snapshot output for further calculations?
- To: mathgroup at smc.vnet.net
- Subject: [mg118864] How to use Manipulate->Snapshot output for further calculations?
- From: gisfmp <marcel.rothfelder at fmf.uni-freiburg.de>
- Date: Sat, 14 May 2011 03:04:12 -0400 (EDT)
Hi there,
I know that there are already some post on this topic, but I wasn't
able to find a answer for my specific case.
So here is my problem:
I am using a Manipulate[Plot...] to find starting value in order to
fit a FTIR spectrum composed of several (10) gaussian peaks. So in the
preview I adjust the arguments for the various gaussians until the
curve fit approximately. Now I want to use these values as starting
values in the fitting process.
The snapshot command only produces a list of variable values, fixed
(e.g. {A=100,B=50}). As starting values, the format needed is e.g. {{A,
100},{B,50}} and provided as argument for the FindFit[] function.
I would be very glad if you could help me with this since I am not
very experienced using mathematica.