How to put informations in a Simulink model?

3 次查看(过去 30 天)
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!

回答(1 个)

TAB
TAB 2013-2-18
编辑:TAB 2013-2-18
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.

类别

Help CenterFile Exchange 中查找有关 Event Functions 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by