How to put informations in a Simulink model?
3 views (last 30 days)
Show older comments
Hi!
I am trying to save a big structure in the model workspace of a Simulink Model, but I have several problems.
My aim is to have all my informations in my Simulink model without having another file (not a .mat file for example). My data are a cell array of structure wich size is 25 000 by 1 cells, each cell containing 3 fields : two strings and a 30 by 2 cell array (so it's quite big).
If I try to put all my informations in the model workspace and then save the model, I've got an out of memory error.
Do you know if it's possible to put a lot of informations in a Simulink model and how can I do it?
In my tool, I can have some sort of pre-processing when I open the Simulink model, and post-processing when I close it so all kind of solutions are welcome :)
Sorry if I'm not very clear, my english is pretty bad :s
Thanks a lot!
0 Comments
Answers (1)
TAB
on 18 Feb 2013
Edited: TAB
on 18 Feb 2013
You can write commands to generate your data inside model's PreLoadFcn callback. So, every time when you will open the model, data will be created in base workspace.
I am not clear why you need string data in model. It is not at all supported by simulink.
0 Comments
See Also
Categories
Find more on Event Functions 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!