Please I want help I have homework I made a mistake saving the file
4 次查看(过去 30 天)
显示 更早的评论
I am a beginner in matlab and there was a problem when saving the file and it was saved in mat format, but I need the code because I have homework I hope to help me as soon as possible and thank you
0 个评论
回答(2 个)
Walter Roberson
2024-7-10
Sorry, the code is gone.
The one remaining hope is that an .asv might have been saved in the same directory as the file.
0 个评论
Sam Chak
2024-7-10
Hi @Baha Alholi
I did a test and "accidentally" saved the code in mat-file format. If I attempt to open the file normally, it throws an error message.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1732063/image.png)
But if I open the mat-file as text (another option in the "Open" button), I can recover the code. I attached the mat-file below for you to test. Hope it is not too late.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1732068/image.png)
1 个评论
Sam Chak
2024-7-10
Also tested in MATLAB Online that I can open the mat-file as "Text" and recover the code.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1732078/image.png)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!