curve fitting toolboxを使った曲線回帰について
11 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
shunya hara
le 21 Nov 2019
Réponse apportée : Hiro Yoshino
le 25 Nov 2019
①回帰曲線を形成した後、その係数をワークスペース内に保存するにはどうすればいいですか?
②また以下のコードを使っているのですが実行したあと白紙のグラフ図がでてきます。それを移さないようにするにはどうしたらよいですか?
%% 近似: '新規近似 1'。
[xData, yData] = prepareCurveData( [], C );
% 近似タイプとオプションを設定します。
ft = fittype( 'gauss1' );
opts = fitoptions( 'Method', 'NonlinearLeastSquares' );
opts.Display = 'Off';
opts.Lower = [-Inf -Inf 0];
opts.StartPoint = [80 6 1.0195564875862];
% モデルをデータに近似します。
[fitresult, gof] = fit( xData, yData, ft, opts );
0 commentaires
Réponse acceptée
Hiro Yoshino
le 25 Nov 2019
(1)
coeffvalues(fitresult)
で係数を取ってこれます。
(2)
私の環境では出てきません…
キャプチャ頂けますか?
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur 線形回帰と非線形回帰 dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!