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
Post a Comment