I receive an error about closing a MAT file. Why?
Mostra commenti meno recenti
Hi
I am using Matlab 2016b. I am using the following command:
L=matfile(sprintf(lb_formatSpec,ix),'writable',true);
L.image=lb_Vol(:,:,ix);
To save in a mat file but I am getting the following error:
Error closing file
C:\Users\user\Desktop\Data_Preparation\labels-006-068.mat.
In this link, it is said data can be saved in version -v7.3. My question is how can I save my mat files with this version by using matfile() function ??
Your help is appreciated.
Risposte (2)
Star Strider
il 1 Gen 2017
0 voti
Unless there is a specific reason you are using the matfile function, the best option is to use the save function, at least to initially create the ‘.mat’ file. That allows you to specify the version. You can then use matfile for subsequent access to it.
2 Commenti
Sara Salimi
il 1 Gen 2017
Star Strider
il 1 Gen 2017
My pleasure.
‘Is there any other way to solve this error if I use matfile() function?’
Not that I can find in the documentation.
The matfile function may not be your best option. See the documentation for load to see if it will do what you want.
M Shujah Islam Sameem
il 19 Dic 2019
0 voti
Sometimes overwriting issue
Categorie
Scopri di più su Environment and Settings in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!