So I have got it saving but it's not exactly what I want..
function SaveButtonPushed(app, event)
app.File.NewData = app.File.Data;
NewData = app.File;
save('NewDataFile','-struct','NewData');
end
The issue is when I open the NewDataFile.mat I get both the old and the new Data.. Whereas I only want the old data..
I suppose I could just overwrite my first line to read
app.File.data = app.File.data; % Having made changes to the data