File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 11disp(matlabRelease())
22
3- assert(isMATLABReleaseOlderThan(' R2025a' ), " Matlab R2025a changed the upgrade process, use the GUI." )
4-
53r = fullfile(matlabroot , " bin" , computer(" arch" ));
4+ mustBeFolder(r )
5+
66cmd = fullfile(r , " MathWorksUpdateInstaller" );
77if ispc()
88 cmd = cmd + " .exe" ;
99end
1010
11- assert(isfile(cmd ), " MathWorks Update Installer not found at %s" , cmd )
11+ if ~isfile(cmd )
12+ if isMATLABReleaseOlderThan(' R2025a' )
13+ error(" Did not find upgrade program at %s" , cmd )
14+ else
15+ error(" Matlab R2025a changed the upgrade process, use the GUI." )
16+ end
17+ end
1218
13- fprintf(" Run this command in Terminal to check for Matlab upgrade:\n\n%s\n\n" , cmd )
19+ fprintf(" Run this command in system Terminal to check for Matlab upgrade:\n\n%s\n\n" , cmd )
You can’t perform that action at this time.
0 commit comments