Error closing file for .mat file

Hi all, I’m trying to fetch the risk factor data from a database and then calculating scenarios on it. While trying to data, which is present as a struct I’m facing an error where it says Error ID: ‘MATLAB:save:errorClosingFile’. I tried changing the flag to ‘-v7.3’ (https://in.mathworks.com/matlabcentral/answers/18098-error-using-save-error-closing-file) but it takes a lot of space and time for the code to run. Is there any other way to fix this issue?

2 Commenti

Hassaan
Hassaan il 18 Mar 2024
@Shashwat Is the file/database instance open in some other editor/software?
-----------------------------------------------------------------------------------------------------------------------------------------------------
If you find the solution helpful and it resolves your issue, it would be greatly appreciated if you could accept the answer. Also, leaving an upvote and a comment are also wonderful ways to provide feedback.
It's important to note that the advice and code are based on limited information and meant for educational purposes. Users should verify and adapt the code to their specific needs, ensuring compatibility and adherence to ethical standards.
Professional Interests
  • Technical Services and Consulting
  • Embedded Systems | Firmware Developement | Simulations
  • Electrical and Electronics Engineering
Feel free to contact me.
No, the connection to the DB and the instance is in MATLAB itself. It seems to be some issue with file size as when I try to save data for a smaller time period the .mat files are saved without any issues

Accedi per commentare.

Risposte (0)

Categorie

Prodotti

Release

R2022b

Richiesto:

il 18 Mar 2024

Commentato:

il 18 Mar 2024

Community Treasure Hunt

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

Start Hunting!

Translated by