Closed saraylet closed 4 months ago
Works with saving using -v7.3
when you open issues, please provide the full command you try to execute and not only the output. How did you try to dave the file? using the 'save' command? GUI? 'save -v7.3'?
See also: https://www.mathworks.com/matlabcentral/answers/859465-error-in-save-to-mat-file
solution is, likely, to use save -v7.3
On Mon, Jul 22, 2024 at 3:58 PM saraylet @.***> wrote:
Whenever I try to save a MovingSource object or a struct of MovingSource objects to a workspace in MATLAB, I get errors and/or MATLAB crashes. This is not an issue for saving any other data type. I get the error:
Error using save Unable to save file 'test.mat'. The file could not be closed, and might now be corrupt.
For example, if I try to save MP which was generated using
MP = MovingSource.read(ReadFile, 'Path', Path, 'PopKA', true);
from the file LAST.01.01.01_20240108.193342.366_clear_043+18_101_001_001_sci_merged_Asteroids_1.mat
In this case, MP is a 1x5 MovingSource object.
— Reply to this email directly, view it on GitHub https://github.com/EranOfek/AstroPack/issues/488, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJUQ4NJAYR6EWEVVNXCR23ZNT6ZFAVCNFSM6AAAAABLIIVXY2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGQZDEOBRHEYTANA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Before seeing your reply, I also eventually found that -v7.3, which partially helped. Still having issues probably with trying to save too many at once, even though it’s only 64 for unknown good. Will try breaking it up. Sarah A. Spitzer, Ph.D. (She/Her/Hers)Research FellowUniversity of MichiganSolar and Heliospheric Research GroupDepartment of Climate and Space Sciences & Engineering!!!!! Please DO NOT SEND confidential, export controlled, or otherwise restricted data or files to this email address. Please contact me to set up a secure file transfer as needed. !!!!!On Jul 22, 2024, at 4:07 PM, Eran Ofek @.***> wrote: when you open issues, please provide the full command you try to execute
and not only the output.
How did you try to dave the file? using the 'save' command? GUI? 'save
-v7.3'?
See also:
https://www.mathworks.com/matlabcentral/answers/859465-error-in-save-to-mat-file
solution is, likely, to use save -v7.3
On Mon, Jul 22, 2024 at 3:58 PM saraylet @.***> wrote:
Whenever I try to save a MovingSource object or a struct of MovingSource
objects to a workspace in MATLAB, I get errors and/or MATLAB crashes. This
is not an issue for saving any other data type. I get the error:
Error using save
Unable to save file 'test.mat'. The file could not be closed, and might now be corrupt.
For example, if I try to save MP which was generated using
MP = MovingSource.read(ReadFile, 'Path', Path, 'PopKA', true);
from the file
LAST.01.01.01_20240108.193342.366_clear_043+18_101_001_001_sci_merged_Asteroids_1.mat
In this case, MP is a 1x5 MovingSource object.
—
Reply to this email directly, view it on GitHub
https://github.com/EranOfek/AstroPack/issues/488, or unsubscribe
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: @.***>
Whenever I try to save a MovingSource object or a struct of MovingSource objects to a workspace in MATLAB, I get errors and/or MATLAB crashes. This is not an issue for saving any other data type. I get the error:
For example, if I try to save MP which was generated using
MP = MovingSource.read(ReadFile, 'Path', Path, 'PopKA', true);
from the file LAST.01.01.01_20240108.193342.366_clear_043+18_101_001_001_sci_merged_Asteroids_1.mat
In this case, MP is a 1x5 MovingSource object.