how to save data with name changing by number

2 次查看(过去 30 天)
Hi guys:
I want to save data with changing name as follow:
for i = 1: 100
outputString = sprintf('Multicandidate_centers_%d', i)
save outputString
end
Actually I want save the name as Multicandidate_centers_1, which the last number changed as the i changed.
Thank you so much!

回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2013-9-18
use
save(outputString)

类别

Help CenterFile Exchange 中查找有关 Automotive 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by