changing a .mat file for SPM batch process
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I am trying to change SPM preprocessing parameters stored in a .mat file. I've figured out MATLAB doesn't seem to allow changing the values within the cell (it gave me strange errors indicating that the entire file no longer existed when I tried to change them). What would be the easiest way to edit these variables?
0 Commenti
Risposta accettata
Walter Roberson
il 19 Set 2013
If you are trying to change just one variable within a .mat that contains many variables, then one route is to use the -append flag at the time you save the revised variable: http://www.mathworks.com/help/matlab/ref/save.html
Note that this will cause the .mat file to get longer; the old variables will not get deleted when you use -append, they will just not be used.
2 Commenti
Walter Roberson
il 20 Set 2013
If you use save -append, then the entire variable is replaced; it does not append on to the end of a variable, and you cannot just replace one cell in the variable.
If you use matfile then what you can change is more flexible.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Structures in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!