matlab - dlmwrite in a loop using cell type as the name -
i save filenames calling cell names as:
bench(1:15).applicationnames
in this:
ans = 'mvt' ans = 'symm'
, etc.
having tested kinds of conversions (cellstr, char, sprintf), can't seems find solution saving array bellow in loop:
dlmwrite('result_<bench(a),applicationname>.csv'),[zz' sort(bench(a).norm)],',')
where each bench.application has name on mentioned above.
use sprintf
in place of first string:
sprintf('result_%s.csv',bench(a).application{:})
edit: fixed, pointed out me bench.application
cellstring.
matlab for-loop save
No comments:
Post a Comment