I want to save the model with a different name and get the model name of the previous model.
For example I have a model named 'model_A' and change it to 'model_B'
I set the PreSaveFcn callback, but in this callback i get the name of the new model 'model_B'.
How do i get the information for the old model ? Do I have to use a different callback ?
Thanks in advance, Adrian.
Store the current model name in a variable and then save it with other name.
OldName = bdroot; % ie model_A save_system(OldName, 'model_B'); save with new name;