Curve prediction based on given curves
Afficher commentaires plus anciens
I have 4 curves of Temperature versus distance. I want to develop a code which would predict the curve for a given initial temperature based on the above 4 curves.
8 commentaires
jgg
le 26 Jan 2016
Do you have a methodology for how you want to do this? There are many different ways to do this; the simplest is probably regression, but it depends on what your data looks like.
AluAl
le 26 Jan 2016
jgg
le 26 Jan 2016
Yes, that's good, but you need a methodology for approaching your problem. There is no uniformly best answer to "how do I fit my data" - it depends on your choices as an analyst or researcher. We can't make that decision for you; you need to make some choices.
I'd suggest:
- Plot some graphs of your data and see what the shape looks like. Is it linear in distance? Is there an obvious pattern?
- Do you have a model for how you data should be generated? You said that it's temperature vs distance data; there should be some physics that should help you predict what this relationship should look like. You can use that to estimate a curve.
- Do some reading on different kind of curve fitting. Load in your data and play around with the curve fitting toolbox.
AluAl
le 26 Jan 2016
jgg
le 26 Jan 2016
If you have a fitted model of your curve, then what is the issue exactly? You should just have to plug in your value and your fitted curve will return the answer. Maybe you should show us what you've done, and what your fitted curve looks like.
AluAl
le 27 Jan 2016
jgg
le 27 Jan 2016
If you have several observations of the same process with the same starting temperature, you can just stack the observations into one big vector and use the curve fitting toolbox.
If they have different initial points, you'll have to get more creative. You can use the initial temperature as a second variable, but you won't be able to use the 2D curve fitting any longer, but thta should still work.
luo chaoqian
le 9 Juin 2022
I have a same problem and thanks to @jgg, I learned and used regression and it can solve my problem perfectly.
Réponses (0)
Catégories
En savoir plus sur Get Started with Curve Fitting Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!