How to put informations in a Simulink model?

조회 수: 9 (최근 30일)
Coralie
Coralie 2013년 2월 18일
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