Matlab not saving .mlx

14 vues (au cours des 30 derniers jours)
Guilherme
Guilherme le 28 Mai 2025
Can someone help me fix this problem:
I can create a .mlx file and write in it normally, i can even export it as pdf (or save the result images).
But as soon as i sign out and sign in again, my .mlx file is gone, leaving the pdf behind (or the images that i saved)
This doesn't happen with the normal scripts (.m), which are the only reason i can still use the platform. Does anyone knows how to fix this or what could be causing this type of error ???
  2 commentaires
Matt J
Matt J le 28 Mai 2025
What do you mean by "sign out and sign in again"? In and out of what?
Guilherme
Guilherme le 28 Mai 2025
i use the matlab online on the browser (for class and stuff), and i need to keep logging in and out my account everytime.

Connectez-vous pour commenter.

Réponses (2)

Benjamin Kraus
Benjamin Kraus le 30 Mai 2025
Modifié(e) : Benjamin Kraus le 30 Mai 2025
Are you saving your Live Editor scripts before you exit from MATLAB Online?
Note that you can run an unsaved Live Editor script, and you can even export an unsaved Live Editor script to a PDF. So, it is possible you are working with the Live Editor script without ever actually saving the file anywhere.
If you don't actuall save the Live Editor script itself (just click the "Save" icon), it will be lost when you exit from MATLAB Online. If you see something like untitled.mlx* (with an asterisk) at the top of your Live Editor script, it is probably not saved. The asterisk means the file is unsaved (or has unsaved changes).
Once you've given the file a name, it should automatically save every time you run the script, but until you give it a name the file can't auto-save.
  2 commentaires
Guilherme
Guilherme le 3 Juin 2025
yes, i save them (actually, i click so much on the save icon that i had to buy a new mouse)
What is messing with me is that i can do everything with the file, write any code, generate any image i want and even export the results, but the moment i close the site, thinking my work is saved, i come back to see my .mlx file gone, but the results are still there, like ?????
Benjamin Kraus
Benjamin Kraus le 3 Juin 2025
@Guilherme If you are saving files and they are disappearing that is very concerning and definitely doesn't sound right to me.
MATLAB Online saves to MATLAB Drive by default.
I'm curious:
  • When you save the files, I assume you see them in the "Files" panel in MATLAB Online and rememeber what folder you've saved them to. Right? If you don't see the MLX file in the "Files" panel, where/how are you saving the files?
  • What happens if you check drive.mathworks.com and look in the same location? Do this prior to exiting MATLAB Online. Open a separate tab, and check to see if you see those files you've saved.
  • If you see the files in MATLAB Drive while MATLAB Online is open, what happens after you close MATLAB Online? Do the files disappear from MATLAB Drive?
  • If you don't see the files in MATLAB Drive but see them in MATLAB Online, do you see a different collection of files in the "Files" panel of MATLAB Online than you see in MATLAB Drive? Can you check the "Delete Files" page in MATLAB Drive?

Connectez-vous pour commenter.


Aishwarya
Aishwarya le 5 Juin 2025
I have also faced a similar issue recently in MATLAB Online when saving MLX files. I have tried the below steps to recover the lost file, and also observed that this ensures subsequent edits are saved in future sessions:
  1. Login to MATLAB Drive Online using the following link: https://drive.mathworks.com
  2. Enable visibility of hidden files by selecting “Show Hidden Files” from the dropdown menu under username (top-right corner).
  3. Navigate to the your corresponding directory.
  4. Find the ".<uuid>.tmp" file corresponding to the timestamp of the most recent change.
  5. Rename the ".<uuid>.tmp" file to "<filename>.mlx"
  6. Once renamed, you should be able to open and edit the file normally in MATLAB Online. All subsequent edits to this file will be retained as expected.
This is a temporary workaround that I used to recover the files.
I would also suggest reporting this issue to MathWorks Support using the following link: https://www.mathworks.com/support/contact_us.html
I hope this helps!

Catégories

En savoir plus sur File Operations dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by