Re: Filter and fit experimental data
- From: gorkin <joonas_71@xxxxxxxxxxx>
- Date: Tue, 29 May 2007 07:55:38 -0400
Thanks again John,
How do I do something like that? I mean I know how I could accomplish
it (I have it in my head) but im having trouble implementing, since I
dont really know how to use matlab/simulink. Again, what Id like to
do is this:
1. trigger data acquisition when theres a signal from the detector,
plot the signal as a function of time, then store everything in a
text file from the beginning.
2. when the gradient or slope of the signal is lower than 0.01 and
higher than 0.005 id like to fit the data to a second degree
polynomial (since the signal can be a bit curved sometimes) and then
extract the slope eg by derivation.
3. store the slopes in a text file.
This is the first step. Then I was planning to make this automatic in
real time, i.e. to make it so that somehow it would recognize the
slope from the beginning, then straight after the end of the signal
it would fit the curve in a separate window and plot the gradient
according to input. It could even try to recognize the function to be
fit, i.e. linear or polynomial. There would have to be some
calibration measurements done in the beginning and these would have
to be taken into account during the rest of the measurement sessions.
Then to incorporate some mathematical functions and to make it
possible to produce publication quality figures. This would be
extremely useful in my work and I estimate would cut down on analysis
time by about 90%, which means more results can be generated in less
time. Fantastic. Having to learn matlab and all that seems quite
difficult for me though, so if anyone has any help to offer, please
do so! :)
Cheers.
John D'Errico wrote:
of
gorkin wrote:
John,
Basically I have this set of experimental data, where I have a
spectrophotometer that monitors a reaction and produces a set
fittinglines, which should have about the same gradient, every 5-10between
minutes
or so. However, theres a lot of like random scatter almost
the lines. So I want to just pick out the lines and leave the
random
scatter. I also wanna get the gradients of those lines by
Anythem to either a linear or polynomial equation. I wanna do thisseconds
automatically. I get my results in a txt file with time in
in
the first column and difference in absorbance int he second.
.suggestions? Must be too easy for most people on this forumanyway.
This is the second post recently where
someone has wanted to fit this class
of data, with linear segments and
junk between them.
I'd suggest a Kalman filter as an
option. Estimate the parameters of
a linear model. Look for where the
uncertainty of the model parameters
gets large. This will signal the
intermediate regions. It also gives
you an estimate of the slope at each
point in time.
John
- References:
- Filter and fit experimental data
- From: gorkin
- Re: Filter and fit experimental data
- From: John D'Errico
- Re: Filter and fit experimental data
- From: gorkin
- Re: Filter and fit experimental data
- From: John D'Errico
- Filter and fit experimental data
- Prev by Date: Re: pwelch function & total power
- Next by Date: www.nike368.com )sell kinds of nike air jordans 1-22,sport shoes,
- Previous by thread: Re: Filter and fit experimental data
- Next by thread: Re: Filter and fit experimental data
- Index(es):
Relevant Pages
|
Loading