Friday 15 August 2014

matlab - Gaussian fit to plot, plotted using bar(x,y) -


I used a set of data using the bar (x, y), a normal distribution from x and y , and I know that this is a normal distribution

Now, I want to:

  1. Normal distribution curve (or Gaussian) fit for plot, bar plot, in figure.

  2. Get the equation, so that I can calculate the maximum point and width by half the maximum.

    I'm looking at Histrite but it does not really work for me (like hist didn ' T work to plot the data, because I already know both X and Y, I think?). Can somebody help me out?

    A move, which retrieves not original raw data (hence Fit suffers from estimations started by Binning), decoding your x with run-long algorithm, and that data on run histfit () : <% P> % data for your last question x [0.0278 0.0556 0.0833 0.1111 0.1389 0.1667 0.1945 0.2222]; Y = [1 3 10 13 28 53 66 91 137]; % Histititis altogether (vulgar (y, x), 9, 'normal')

    Where you can find the run-length encoding / decoding function.

    Result:

    Enter image details here

    No comments:

    Post a Comment