Error in append dot structure mat file
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
balandong
am 3 Mai 2017
Kommentiert: Walter Roberson
am 3 Mai 2017
Dear all, I have data store in a mat file (i.e.,subject01_dataset.mat) . Under the mat file, each data were store 1) Patient_FullData.auxilaryData 2) Patient_FullData.reshape
After some processing, I want to store the result as Patient_FullData.result Thus the following line were utilized
save ('SC4001E0_dataset.mat', 'Patient_FullData.result', '-append');
However, I got the following error
'Patient_FullData.data' is not a valid variable name.
May I know how to mitigate this issue
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 3 Mai 2017
You cannot save() a field in a structure, and you cannot use save() to appened to an existing struture.
If you need to appened on to an existing array in a .mat file, consider using matFile()
2 Kommentare
Walter Roberson
am 3 Mai 2017
matFile() is the defined way to append to an existing variable in a .mat file.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Workspace Variables and MAT-Files finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!