character encoding - saving all variable values in matlab's workspace together with their names -


i'd save print variables in workspace file names in way:

%<*firstvariablename>firstvariablevalue(s)%</firstvariablename> %<*secondvariablename>secondvariablevalue(s)%</secondvariablename> 

i'd save each variable on new line. i've experimented function who, can't seem work.

i have problem getting save utf-8, there simple encoding setting changed?

the who function save names of variables, not data in variables. if you'd save actual variables, should use save function, , save *.mat file.

if you're trying list of names of variables formatted in way, i'd recommend doing this:

varlist = who(variables); 

varlist cell array. can fopen start writing file, iterate through cell array using fwrite, , fclose when you're done. way, when iterate, should use varlist{x}, return string (whereas varlist(x) return cell).

hope helps. :)


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -