フィルターのクリア

How to return the fit as a function object?

2 ビュー (過去 30 日間)
Peiyuan ZHU
Peiyuan ZHU 2017 年 5 月 10 日
コメント済み: dpb 2017 年 5 月 11 日
There are ways to evaluate the function or return the string of the function expression, which I know. But is there a way I can return the result as a function object? Because I need to use that fitted result as a part of an operator to be solved by CHEBFUN. Can someone suggest a way? Specifically I would like a fit of Gaussian polynomials up to some degree like in the curve fitting toolbox.

回答 (1 件)

dpb
dpb 2017 年 5 月 10 日
Under 'Fit' menue, 'Save to Workspace' will save a cfit object of your choice to name. Not precisely sure what you're then wanting to do, but I'm guessing probably will serve the purpose.
  2 件のコメント
Peiyuan ZHU
Peiyuan ZHU 2017 年 5 月 10 日
What I mean is not using the menu etc but a command. Because I want to create a loop that does multiple fits, and use multiple fits
dpb
dpb 2017 年 5 月 11 日
Use the fit command, then.
doc fit % for the details...need to know a model class, of course.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGet Started with Curve Fitting Toolbox についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by