i'm working with Matlab S-function level 2 and i want to pass Data between functions, for exemple between function Initialize Conditions(block) and function Outputs(block) or function Update(block). I tried with Dwork vector but they can't take dimen

1 view (last 30 days)
i'm working with Matlab S-function level 2 and i want to pass Data between functions, for exemple between function Initialize Conditions(block) and function Outputs(block) or function Update(block). I tried with Dwork vector but they can't take dimensions of type [m x n]. I'm looking for something like global variable that can share data between all functions in my S-function. I tried with global or persistent but it give me error '' Undefined function or variable ''. Thanks for help

Answers (0)

Categories

Find more on Word games in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!