Matlab not saving .mlx
14 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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
Réponses (2)
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
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.
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?
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:
- Login to MATLAB Drive Online using the following link: https://drive.mathworks.com
- Enable visibility of hidden files by selecting “Show Hidden Files” from the dropdown menu under username (top-right corner).
- Navigate to the your corresponding directory.
- Find the ".<uuid>.tmp" file corresponding to the timestamp of the most recent change.
- Rename the ".<uuid>.tmp" file to "<filename>.mlx"
- 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!
0 commentaires
Voir également
Catégories
En savoir plus sur File Operations dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!