1. Not finding help here? Sign up for a free 30min tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matlab code fitting a line to a histogram

  1. Oct 21, 2011 #1
    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

    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
    :)
     
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?



Similar Discussions: Matlab code fitting a line to a histogram
  1. Sic matlab code (Replies: 0)

  2. ADSL Matlab code (Replies: 0)

Loading...