5.0

5.0 | 2 ratings Rate this file 180 downloads (last 30 days) File Size: 1.66 KB File ID: #22802

Normalized histogram

by Arturo Serrano

 

28 Jan 2009

Code covered by BSD License  

Same as histogram, but the area sum is 1.

Download Now | Watch this File

File Information
Description

HISTNORM Histogram normalized
  [...] = HISTNORM(...) works like HIST, but the frequency is normalized so that area sum is 1.

  Bonus usage!
  [...] = HISTNORM(..., 'plot') plots and returns the output arguments. Be sure 'plot' is the last argument.

  Example:
      data = randn (10000, 1);
      [xo,no] = histnorm(data, 101, 'plot');
      hold on
      plot (no, normpdf(no), 'r');
      hold off

  See also: HIST.

  Copyright 2009 DWTFYW.

MATLAB release MATLAB 7.7 (R2008b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
20 Feb 2009 Darcy Sabatino

Very helpful. The histnorm() function is virtually as easy as the hist() function.

16 Nov 2009 abdelhamid alhassi

thanks very helpful

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
histogram Arturo Serrano 28 Jan 2009 11:01:27
normalized Arturo Serrano 28 Jan 2009 11:01:27
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com