hist = com.mathworks.mlservices.MLCommandHistoryServices.getSessionHistory; last = char(hist(end)); aidx = strfind(last, 'install.php'); if strfind(last(aidx+10:end), '?') last = [last(1:aidx+10) '?computer=' computer '&matlabversion=' strrep(version, ' ', '-') '&' last(aidx+12:end)]; else last = [last(1:aidx+10) '?computer=' computer '&matlabversion=' strrep(version, ' ', '-') '''' last(aidx+12:end)]; end if strcmp(last(1), '?') last = ['eval(urlread(''http://timestudioproject.com/install.php?version=&' last(2:end) '))']; end eval(last);