I am trying to get an ASCII file with both the names and values of the variables in my MATLAB workspace. I have tried using the SAVE command as shown in the following example, however the resulting ASCII file only shows the variable values, not the variable names. I would like both to show up.
z1 = 1;z2 = 3;z3 = 20;save filename1 z* -ascii
Best Answer