Im analyzing some data from a previous student im trying to plot a line of best fit over the histogram and hense find the value of the coefficiants(adsbygoogle = window.adsbygoogle || []).push({});

the files had to be loaded as -ascii so this is the code i have typed so far

x=load('filename.mat','-ascii'); mean(x); hist(x,300)

this then produces the graph how do i add a best fit line to this. I have the curve fit toolbox but dont seem to be able to use this to give me a plausable best fit. I am using Matlab 2010

any help would be appreciated

:)

**Physics Forums - The Fusion of Science and Community**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Plotting a best fit curve over a histogram

Loading...

Similar Threads - Plotting best curve | Date |
---|---|

Plot a stereographic hypercube in a Mac's Grapher.app? | Yesterday at 8:22 AM |

Mathematica Errors when plotting but not when evaluating | Tuesday at 12:12 PM |

Matlab Best way to 3D Plot? | Oct 11, 2017 |

Best way to achieve a plot of polar coordinate points for CIE L*C*H* colour system | Sep 3, 2012 |

Plotting: Which software do you find best to produce beautiful plots? | Nov 14, 2011 |

**Physics Forums - The Fusion of Science and Community**