Using dynamic workspace arrays as Matlab function input/output
Show older comments
Hey there,
i want to create a Simulink model, where the following happens:
- Based on Simulink signal values as input, an array of possible responses shall be created/extended in Matlab base workspace. If the input signals do not change in between simulation steps, the array shall not be extended.
- After that, a separate Matlab function Block should choose values from this array, process them and create Simulink output values. The values, which were used to generate the output values shall be removed from the list (or marked as used)
So far, I have created a Matlab function block, which takes the simulink signal, as well as a constant, which points to the list in the Matlab workspace, as input. And outputs the updated list. How can i write the updated list in the workspace?
2 Comments
Fangjun Jiang
on 30 Nov 2020
Why involve MATLAB base workspace? The interface between your part 1 and part 2 could be an ordinary signal, a vector signal or array signal.
Niklas Braun
on 1 Dec 2020
Accepted Answer
More Answers (0)
Categories
Find more on Sources 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!