save new field to a structure?!
Ältere Kommentare anzeigen
Hello! I have a 'myfile.mat' which contains several structures struct1, struct2,... Now I would like to save a new added field to one of the structures let say struct1 but it is not working when reloading the .mat file the newfield is not there, any suggestions ?! thank you !
2 Kommentare
Geoff Hayes
am 12 Jul. 2017
Ano - are you saving the updated structure? Please show the code that you have written to read the myfile.mat, update the (say) struct1, and then save the data back to file.
Adam
am 12 Jul. 2017
You haven't included any code as to how you do it which would make it a lot easier for us to know where you are going wrong.
Akzeptierte Antwort
Weitere Antworten (2)
Kategorien
Mehr zu Workspace Variables and MAT Files finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!