Azzera filtri
Azzera filtri

least squares fit with standard deviation

3 visualizzazioni (ultimi 30 giorni)
RuiQi
RuiQi il 7 Feb 2017
Risposto: Star Strider il 7 Feb 2017
is there a function in matlab that can find the least squares fit of my data then plot the line with the standard deviation like https://www.google.com.sg/search?q=least+squares+standard+deviation&rlz=1C1CHBF_enPL695SG695&espv=2&biw=1366&bih=589&source=lnms&tbm=isch&sa=X&ved=0ahUKEwijyMCGjv7RAhWMPI8KHV05Do8Q_AUIBigB#imgrc=pkFcX59G2iG-eM:
My fit will be linear so it could basically be just 3 linear plots (2 for the standard deviation plot)

Risposte (1)

Star Strider
Star Strider il 7 Feb 2017
The File Exchange contribution polypredci will plot the confidence intervals. To plot ±1 standard deviation, set ‘alpha’ to be 0.68.

Categorie

Scopri di più su Linear and Nonlinear Regression in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by