How to import variable into a MATLAB function in Simulink without explicitly defining them?

6 views (last 30 days)
I have variable predefined in workspace and my custom MATLAB block needs to
access them. I guess I could pass the variable explicitly, but that is just so ugly.
Any idea how to do this?

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 28 Dec 2013

More Answers (0)

Categories

Find more on Modeling in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!