Robot Assisted Stereotactic Surgery

Auto-generates G-Code For Use With Motorized Stereotax


Updated 30 Oct 2013

View License

% Written By David Barker & Kevin Coffey
% Rutgers University : Behavioral Neuroscience

The programs areintended to be used in conjunction with a motorized stereotax.

They allow users to design surgeries within a simple graphic user interface.
Surgeries will be automatically converted to G-code in order to control a motorized (CNC) stereotax.

Currently Supports 4 Surgeries:

Sharp Edge Craniotomy
Thin Skull Windowing
Lowering Electrodes or Cannula
Drilling Holes

***We are not responsible damage to any equipment from running autogenerated G-code.***

***Failure to thoroughly simulate G-code is not recommended.***

***Programs may be modified for custom applications.***

***Skull.mat must be within the active directory***

Update 10/30/13 : New script "lateralcraniotomy.m" angles the craniotomy window down toward the lateral edge, to compensate for the curvature of the skull.

Cite As

Kevin Coffey (2023). Robot Assisted Stereotactic Surgery (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Biological and Health Sciences in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Small coding error fixed.