Register to reply

Plotting a best fit curve over a histogram

by matt_crouch
Tags: curve, histogram, plotting
Share this thread:
matt_crouch
#1
Oct20-11, 10:47 AM
P: 148
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
:)
Phys.Org News Partner Science news on Phys.org
'Smart material' chin strap harvests energy from chewing
King Richard III died painfully on battlefield
Capturing ancient Maya sites from both a rat's and a 'bat's eye view'
batmunkh
#2
Nov16-11, 03:52 AM
P: 1
hey, How to plot for x,y data on Histogram in Mathematica?
I saw The Histogram function is just ploting y data,


Register to reply

Related Discussions
Histogram and PDF Math & Science Software 0
Graph analysis - how closely histogram fits poisson curve Precalculus Mathematics Homework 1
Graph analysis - how closely histogram fits poisson curve Introductory Physics Homework 0
Plotting (& not plotting) Asymptotes in Mathematica Math & Science Software 2
OrCad Spice - plotting tangent line of curve Electrical Engineering 1