How to program plots with models starting with table

https://www.mathworks.com/help/stats/linearmodel.plot.html provides a code example with loading dataset
load carsmall
Year = categorical(Model_Year);
tbl = table(MPG,Weight,Year);
mdl = fitlm(tbl,'MPG ~ Year + Weight^2');
But how can one program the above when one start from table T?

Respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 8 de Jul. de 2020

Comentada:

el 8 de Jul. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by