开发者

Save Matlab Variables with a string in a cell

I'm looking to save my workspace variables with a specific name. I have a cell with the name I would like it to be called, but am unsure of the formatting for the code.

Usin开发者_JS百科g name{1} and variable x I tried:

save name{1} x

save (name{1}) x) save ([name{1} x]) save ([y(1) x])

but none seemed to work. I'm not sure on the specifics for using the save function


Check the documentation for the save command:

save(savefile, 'v1')  % Use when filename is stored in a variable

So, try with:

save(name{1}, 'x')
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜