Skip to content

Commit 3f564f9

Browse files
committed
qualify upgrade script
1 parent 7df7ac9 commit 3f564f9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/MatlabReleaseUpgrade.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
disp(matlabRelease())
22

3+
assert(isMATLABReleaseOlderThan('R2025a'), "Matlab R2025a changed the upgrade process, use the GUI.")
4+
35
r = fullfile(matlabroot, "bin", computer("arch"));
46
cmd = fullfile(r, "MathWorksUpdateInstaller");
7+
if ispc()
8+
cmd = cmd + ".exe";
9+
end
10+
11+
assert(isfile(cmd), "MathWorks Update Installer not found at %s", cmd)
512

613
fprintf("Run this command in Terminal to check for Matlab upgrade:\n\n%s\n\n", cmd)

0 commit comments

Comments
 (0)