When MATLAB is not open, you can open a saved model from your operating file system browser.
When MATLAB is open but no Simulink models are open, you can open a saved model by taking one of these actions:
- In the MATLAB Editor, click Browse for folder . In the file browser that appears, navigate to the folder that contains the model and click Select Folder. Then, in the Current Folder Browser, double-click the model name.
- Open Simulink. On the Simulink Start Page, in the side bar on the left, select a recent model or project from the list, or click Open.
When there is already an open Simulink model, you can open a saved model from the Simulink Editor:
- In the Simulink Toolstrip, on the Simulation tab, click Open.
- Click Recent Files to open recent files or Open to search for a model.
When the Simulink Library Browser is open in standalone mode, you can open a saved model from the Library Browser window by clicking Open .
To open a saved model programmatically, in the MATLAB Command Window, enter the name of the model without a file extension, for example, modelName. The model must be in the current folder or on the MATLAB search path.
Load Model Variables and Data from MAT-File
If the data for your model is stored in a MAT-file, to load the data into your MATLAB workspace, first change directory to the file location:
- In the MATLAB Editor, click Browse for folder .
- In the file browser that appears, navigate to the folder that contains the MAT-file and click Select Folder.
Then enter this command, where modelName is the name of the MAT-fil
引用格式
Vanja (2024). Regulirani (https://www.mathworks.com/matlabcentral/fileexchange/163646-regulirani), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2023a
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0 |