Custom fitting equations: Using a TriScatteredInterp Object
1 回表示 (過去 30 日間)
古いコメントを表示
For a while now I have been using the curve fitting toolbox's custom equation capabilities to fit data to my user defined equation. Of course these equations are of the form:
eqn=f(x,a,b,c) where x is the independent variable, and a,b,c are the fitted parameters.
Ok, that's pretty simple, but now I want to define my custom equation including analysis by a TriScatteredInterp Object, let's call it Interp_Obj. (although, this question pertains to any object that one would want to put in the custom equation.)
I want my equation to now look like: eqn=Interp_Object(f(x,a,b),g(x,c)) The independent variable is still x, and the fitting variables are still a,b,c, but the calculation of eqn is now simply performed using an object call.
I tried passing the name of my object via the 'problem' option, but that doesn't seem to work. Anyone have any ideas?
0 件のコメント
回答 (1 件)
Kevin Holst
2012 年 2 月 14 日
I don't think TriScatteredInterp is what you're wanting to use there. TriScatteredInterp is used similar to griddata, in that you give it a lot of scattered points and then ask it to interpolate to find out what value is at point X,Y,Z.
Unfortunately I don't know what you should use for that situation, so maybe someone else will chime in here.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Get Started with Curve Fitting Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!