How to extract specific information from a table, an output when fitlm() function in sued

10 次查看(过去 30 天)
Hello, am curretly trying to compare several models to determine which one best explains the physical phenomenon. To do this, am using regression analysis to compare each model against the actual experimental data. In each comparsison, I get a table similar to the one below. I would like to pick each R-squared value for each model and store it in a matrix to allow me perform further analaysis.How do I go about this?

采纳的回答

Walter Roberson
Walter Roberson 2024-10-5
Store the result of fitlm() in a variable, such as mdl
Access the Rsquared property of the variable such as
mdl.Rsquared
This will be a structure with fields
Ordinary
Adjusted
Extract the value you want and store it in a matrix.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Descriptive Statistics 的更多信息

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by