Add Simulink Blocks from a given Model File with context menu

Customizes Simulink context menu with all blocks from a model file custom_context_menu_blocks.mdl.

You are now following this Submission

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Customizes Simulink context menu with all blocks from a model file custom_context_menu_blocks.mdl.
These blocks are accessible through context menu: Add custom block / List of blocks. The chosen block is added at the position of the mouse click that initiated the context menu.

Please feel free to modify custom_context_menu_blocks.mdl to meet your expectations and needs.

It might be neccessary to run sl_refresh_customizations command to refresh Simulink context menu or set the Matlab path correctly.

Cite As

Paul (2026). Add Simulink Blocks from a given Model File with context menu (https://www.mathworks.com/matlabcentral/fileexchange/30248-add-simulink-blocks-from-a-given-model-file-with-context-menu), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: Create From Blocks

Categories

Find more on Modeling in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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