Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Plotting commands

histc

We've made some changes. Use 'Ctrl-F5' to clear your browser cache.
Scroll Prev Top Next More

Creates a histogram plot.

 

Supported Product: FDTD, MODE, DEVICE, INTERCONNECT

 

Syntax

Description

out = histc(y);

Creates a histogram plot of y.

Returns the figure number.

histc(y,n);

Creates a histogram plot of y, using n bins.

Returns the figure number.

histc (y,n, "x label", "y label", "title");

Creates a histogram plot of y, using n bins, with axis labels and a title.

Returns the figure number.

 

Example

These are scripts for creating simple histograms.

#Creates a histogram plot of y.

y = randmatrix(1,10);

y = y*10;

out = histc(y);

 

#Creates a histogram plot of y, using n bins.

#Returns the figure number.

y = randmatrix(1,10);

y = y*10;

n = 5;

out = histc(y,n);

 

#Creates a histogram plot of y, using n bins, with axis labels and a title.

histc (y,n, "x label", "y label", "title");

 

See Also

Plotting commands, histogram, legend, plot, closeall, visualize

Copyright Lumerical Inc. | Privacy | Site Map