simulink 如何添加不存在当前路径

查看help时,经常遇到打开某个模型, 在操作打开模型的命令时发现该模型不是有效路径,应该如何操作

 采纳的回答

Xiaoning.Wang
Xiaoning.Wang 2023-2-9

0 个投票

addpath(fullfile(matlabroot,'/help/toolbox/autosar/examples'));
hModel = 'mControllerWithInterface_client';
open_system(hModel);

更多回答(1 个)

Xiaoning.Wang
Xiaoning.Wang 2023-2-9

0 个投票

dpath(fullfile(matlabroot,'/help/toolbox/autosar/examples'));

类别

在 帮助中心 和 File Exchange 中查找有关 建模 的更多信息

产品

版本

R2022b

Community Treasure Hunt

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

Start Hunting!