How to do linear fitting of data to get R square value and coeficient of a,b ?
古いコメントを表示
I got x and y value. I want to fit the date linearly . I want to get Rsquare value and value of a and b. How to do in matlab?
回答 (1 件)
n = 100;
x = randn(n, 1);
y = randn(n, 1);
mdl = fitlm(x, y)
1 件のコメント
Debarati Ghosh
2024 年 3 月 27 日
@Ive J Thank you sir
カテゴリ
ヘルプ センター および File Exchange で Linear and Nonlinear Regression についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!