lengthhist

Syntax:

lengthhist(cellList)

lengthhist(cellList1,cellList2,...)

lengthhist(cellList,xarray)

lengthhist(cellList1,cellList2,xarray)

lengthhist(cellList1,pix2mu)

lengthhist(cellList1,pix2mu1,cellList2,pix2mu2)

lengthhist(cellList1,cellList2,'overlap') 

lengthhist(...'nooutput') 

lengthhist(...'nodisp') 

[lengthlist] = lengthhist(cellList)

[lengthlist1,lengthlist2] = lengthhist(cellList1,cellList2)

This function plots a histogram of the length of every cell in a population

  • <cellList> is an array that contains the meshes. You can drag and drop the file with the data into MATLAB workspace or open it using MATLAB Import Tool. The default name of the variable is cellList, but it can be renamed.

  • <cellList1>, <cellList2> - you can load two arrays, they will be plotted together for comparison.

  • <xarray> ˗ array of x values for the histogram, which serve the centers of bins of the histogram (the boundaries will be in between, for example [1 2 3 4 5] to display all the cells shorter than 1.5 micron in the first bin, between 1.5 and 2.5 microns in the second, etc.).

  • <pix2mu>, <pix2mu1>, <pix2mu2> - conversion factors from pixels to microns, the size of a pixel in microns. Typical value 0.064.

  • 'overlap' - indicate this if you wish the histograms to overlap, otherwise they will be displayed separately.

  • <lengthlist>, <lengthlist1>, <lengthlist2> - arrays containing the length of every cell to save and plot separately.

  • <nooutput> blocks standard text output (type of data processed, mean, and standard deviation; only a figure is displayed).

  • <nooutput> blocks figure output (only text output is produced).