フィルターのクリア

Extracting coefficients from cell array with fitted data

5 ビュー (過去 30 日間)
Alexander Engman
Alexander Engman 2018 年 3 月 21 日
コメント済み: Alexander Engman 2018 年 3 月 21 日
Hi!
Suppose I have a cell array where each element contains a 1x1 cfit, each fit with its unique set of coefficients a,b and c. Is there any simple way to extract the coefficients of a specific element?
For example, if I have a cell array
A=[1x1 cfit 1x1 cfit 1x1 cfit]
and I wanted to extract the coefficients a,b and c for the second element A[1,2], how would I go about doing that in the simplest way?
Many thanks in advance.
Alexander.

採用された回答

Birdman
Birdman 2018 年 3 月 21 日
編集済み: Birdman 2018 年 3 月 21 日
When I tried to access a cfit object coefficients by writing
A{1,2}.Coefficients
I came across the error in the attached figure.
Therefore you need to call your coefficient values by typing
A{1,2}.p1
A{1,2}.p2
and so on.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFit Postprocessing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by