drawCell
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 (2026). drawCell (https://nl.mathworks.com/matlabcentral/fileexchange/70264-drawcell), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
