MATLAB® Online™ provides access to MATLAB from a standard web browser. In MATLAB Online, each time you save a program file, MATLAB stores the contents of your program in the version history. To recover a previous version of a file, select the File Versions tab.
The file version history appears, as shown in the following figure.
Browse for the file you want by selecting from the list, or by clicking Older or Newer. When you find the file, click Restore as Latest. MATLAB adds the restored file to the top of your history with a new timestamp and version number.