MATLAB: Save(filename, var) cant find workspace variable even if it exist

MATLABsave

From my script i am trying to use save to store my workspace stucture to a .mat file. But i get following error message:
>> TestGUI Error using save Variable 'NewTest' not found.
In my script i use save like this:
save('NewTest.mat','NewTest');
I can see that my structure exists in the workspace, any idea why save don't find my variable?

Best Answer

The error message and the quoted code code give two different variable names: 'NewTest' vs 'newTest'.
Capitalization is significant in MATLAB!
It is not possible for both of these to be correct, so which one is right?