Skip to content

rrmaram2000/matlab-toolbox-skills

Repository files navigation

MATLAB Toolbox Skills for Claude

CC BY 4.0 MATLAB R2025b

As a biomedical engineering PhD student, I use MATLAB daily for medical image analysis. I created these skills because Claude often suggests Python workarounds for things MATLAB can do natively, or recommends functions that were deprecated several versions ago.

These skills give Claude accurate, toolbox-specific knowledge so it suggests code that actually works.

New to Claude Skills? Skills are knowledge packages that extend Claude's capabilities. Learn more →


See the Difference

I tested each skill by asking Claude the same question with and without the skill loaded.


How do I use MedSAM to segment a tumor from a CT volume in MATLAB?

Aspect Without Skill With Skill
ApproachPython bridge requiredNative MATLAB
Code complexity100+ lines across two languages~40 lines pure MATLAB
Key functionDoesn't know it existsmedicalSegmentAnythingModel
WorkflowTemp files, subprocess callsextractEmbeddingssegmentObjectsFromEmbeddings
3D handling"Loop over slices" (vague)Seed-and-propagate workflow for 3D

How do I visualize a 3D medical volume with a segmentation overlay?

Aspect Without Skill With Skill
ApproachWorkarounds (isosurface, loops)OverlayData parameter
Code30+ lines3 lines
Key syntaxDoesn't know itvolshow(V, OverlayData=L.Voxels)


Installation

Claude Desktop

  1. Download or clone this repository
  2. Zip the skill folder you want:
    zip -r matlab-medical-imaging-toolbox.zip matlab-medical-imaging-toolbox
    
  3. Go to Settings → Capabilities → Skills → Customize and upload the zip
  4. Toggle the skill on and start a new conversation

Claude.ai (Web)

Go to Settings → Capabilities → Skills → Customize and upload the zip file.

Claude Code

Copy the skill folder to your skills directory:

# For all your projects (personal)
cp -r matlab-medical-imaging-toolbox ~/.claude/skills/

# Or for a specific project only
cp -r matlab-medical-imaging-toolbox .claude/skills/

See the Claude Code skills documentation for more details.


Use with MathWorks MATLAB MCP Server

These skills work great alongside the official MATLAB MCP Core Server from MathWorks:

What It Provides
MCP Server Code execution, syntax checking, toolbox detection
These Skills Toolbox-specific knowledge for accurate suggestions

See MathWorks AI resources for more tools.


Available Skills

Skill What It Covers
matlab-medical-imaging-toolbox DICOM/NIfTI I/O, MedSAM, Cellpose, radiomics, 3D visualization
matlab-image-processing-toolbox Filtering, segmentation, morphology, watershed, regionprops
matlab-deep-learning U-Net, semantic segmentation, custom training, transfer learning
matlab-stats-ml Classification, regression, survival analysis, Bayesian methods
matlab-wavelet-toolbox 2D transforms, denoising, lifting schemes, shearlets

More Examples


How do I segment overlapping cells in a microscopy image?

Aspect Without Skill With Skill
ApproachBasic watershedProduction-ready watershed
PreprocessingSimple thresholdimtophat for background correction
Edge handlingNot addressedimclearborder for edge cases
ParametersGeneric valuesSpecific values with explanations

How do I create a U-Net for image segmentation in MATLAB?

Aspect Without Skill With Skill
Functions usedunetLayers, trainNetwork (deprecated)Both legacy and modern functions
Modern syntaxNot mentionedunet, trainnet (R2024b+)
Custom architectureNot shownManual construction code included

How do I use shearlets for directional texture analysis?

Aspect Without Skill With Skill
ApproachThird-party toolbox (ShearLab 3D)Native MATLAB Wavelet Toolbox
Setup requiredDownload from shearlab.orgNone — built-in
Forward transformSLsheardec2Dsheart2
External dependenciesYesNo

Contributing

Found an error? Have a suggestion? Contributions are welcome.

  • Report issues — Open an issue to report bugs or suggest improvements
  • Submit fixes — See CONTRIBUTING.md for guidelines

All feedback is appreciated.

License

CC BY 4.0

This work is licensed under a Creative Commons Attribution 4.0 International License.

About

MATLAB toolbox skills for Claude — verified against R2025b for medical imaging, image processing, deep learning, machine-learning&statistics, and wavelets.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors