Save_System error:
I am writing a script to in version 2021b to:
1) load a Simulink model using:
mhandle = load_system(this_model)
2) make some changes, e.g., renaming some signals
3) save these changes using:
save_system(mhandle)
close_system(mhandle)
I keep getting the following error:
Error using save_system (line 43)
system: invalid vector subscript: (class std::out_of_range)
Seems simple enough, but I can’t figure what I’m doing wrong. I also tried
close_system(mhandle, 1)
but get the same error. Thanks for any guidance for what seems to be a brain-freeze mistake 🙂 :)I am writing a script to in version 2021b to:
1) load a Simulink model using:
mhandle = load_system(this_model)
2) make some changes, e.g., renaming some signals
3) save these changes using:
save_system(mhandle)
close_system(mhandle)
I keep getting the following error:
Error using save_system (line 43)
system: invalid vector subscript: (class std::out_of_range)
Seems simple enough, but I can’t figure what I’m doing wrong. I also tried
close_system(mhandle, 1)
but get the same error. Thanks for any guidance for what seems to be a brain-freeze mistake 🙂 🙂 I am writing a script to in version 2021b to:
1) load a Simulink model using:
mhandle = load_system(this_model)
2) make some changes, e.g., renaming some signals
3) save these changes using:
save_system(mhandle)
close_system(mhandle)
I keep getting the following error:
Error using save_system (line 43)
system: invalid vector subscript: (class std::out_of_range)
Seems simple enough, but I can’t figure what I’m doing wrong. I also tried
close_system(mhandle, 1)
but get the same error. Thanks for any guidance for what seems to be a brain-freeze mistake 🙂 🙂 load_system, save_system, close_system MATLAB Answers — New Questions
​