Why do I receive an error regarding EXIST function when calling SLUPDATE for a model in Simulink?

1 view (last 30 days)
When calling the SLUPDATE function for a model, I receive the following error regarding EXIST function:
slupdate(my_model);
??? Error using ==> exist
The first input to exist is a string.
Error in ==> slupdate>locForceSysOpen at 385
if exist(sys,'file') == 4,
Error in ==> slupdate at 52
[isLibrary, closeSimulink] = locForceSysOpen(sys);

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This error occurs if you are calling SLUPDATE using parentheses and the model name without apostrophes. The correct syntax would be, for example:
slupdate('my_model')
or:
slupdate my_model

More Answers (0)

Categories

Find more on Multicore Processor Targets in Help Center and File Exchange

Products


Release

R2006b

Community Treasure Hunt

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

Start Hunting!