drawCell

Plots a filled bacteria cell with a given length, width, position, angle, and color specified.

https://www.andrew-woodward.ca/blog/plotting-bacteria-cells-length-width-orientation-onto-a-figur...

You are now following this Submission

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://in.mathworks.com/matlabcentral/fileexchange/70264-drawcell), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.1

added website link

1.0.0