R2 approximation error as in Excel

4 ビュー (過去 30 日間)
Lev Mihailov
Lev Mihailov 2019 年 7 月 24 日
編集済み: Lev Mihailov 2019 年 7 月 24 日
Hello! In Excel, when building a trend line, it is possible to show an error of R2 approximation, and can this be done in a matlab environment?
my data egg = [20 25 22 24 ...] milk = [102,152 134,141 ...]
Animalfivefive_fit = polyval(egg,milk);
tried to build a trend line, but all values ​​are 'inf'
My task is to do everything as in Excel, but only in the matab

回答 (1 件)

Torsten
Torsten 2019 年 7 月 24 日
https://de.mathworks.com/help/stats/coefficient-of-determination-r-squared.html

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by