How can I force fit the y axis intecept of 'fitlm' to an arbitrary value?

3 visualizaciones (últimos 30 días)
SFSpikes
SFSpikes el 27 de Feb. de 2020
Editada: SFSpikes el 27 de Feb. de 2020
I'd like to perform a linear fit y = m(x) + q and force the q to a given value that is not zero.
How should I call fitlm to take q into account instead of fitting the q?
fitlm(X,Y,'Intercept',true) versus fitlm(X,Y,'Intercept',false); either leads to a fitted intercept or a force fit through zero.

Respuestas (0)

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by