Force begin/end slope of trendline scatterplot

Hi,
I have a scatterplot through which I want to plot a trendline. Using polyfit I get a line through my plot as seen in the picture below. This is a 2nd order polyfit. Higher order fits give less fitting lines. The line looks like it has a minimum, which is not desired. What I want to achieve is to fix the slope at x =1 to be 0 so that it has no minimum. How can I do this?

Más respuestas (0)

Categorías

Más información sobre Data Distribution Plots en Centro de ayuda y File Exchange.

Preguntada:

el 12 de Abr. de 2021

Comentada:

el 13 de Abr. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by