- Create the variable in Model workspace, it will be saved with the model.
- Create the variable in a Simulink Data Dictionary, it will be saved to a .sldd file.
- Save the workspace variable to a .mat file before closing MATLAB. Next time, load the .mat file first.
- Export the workspace variable to a .m file before closing MATLAB. Next time, run the .m file first.
Block Parameters are Always Deleted
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Roberto Louis Moran
il 10 Dic 2020
Modificato: Fangjun Jiang
il 10 Dic 2020
I created parameters in the block parameter options for several transfer functions and gains. I opted to save each one on 'Base Workspace'. Everytime I close the project, Matlab deletes the parameters and I have to do everything all over again.
How do I prevent that?![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/456869/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/456869/image.png)
0 Commenti
Risposta accettata
Fangjun Jiang
il 10 Dic 2020
Modificato: Fangjun Jiang
il 10 Dic 2020
That is expected behavior. I don't know why it was designed that way. To avoid the problem, do either one of these:
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Simulink Environment Customization in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!