drawCell

Plots a filled bacteria cell with a given length, width, position, angle, and color specified.
22 Downloads
Updated 12 Feb 2019

View License

drawCell - plots a filled bacteria cell with a given length, width, position, angle, and color

Inputs:
POSITION - coordinates of the cell centroid [x y]
LENGTH - length of the cell (um)
WIDTH - width of the cell (um)
ANGLE - orientation of the cell in radians
COLOR - color of the cell (rgb triplet)
varargin - used to input the current axis hangle if given

Output:
handle - the handle for the cell's scatter

More information about the function with some figure examples can be found here:
https://www.andrew-woodward.ca/blog/plotting-bacteria-cells-length-width-orientation-onto-a-figure-matlab

Cite As

Andrew Woodward (2025). drawCell (https://www.mathworks.com/matlabcentral/fileexchange/70264-drawcell), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.1

added website link

1.0.0