我想检查一下
workingDir = C:\Users\~\Temp\workspace_folder;
for i=1:2
% do an action which generates folder C:\Users\~\Temp\workspace_folder_1 first iteration
% and increment for each iteration
x = strcat(workingDir,'_',i);
end
仅提供
x = C:\ Users \〜\ Temp \ _ workspace_folder_,为什么不打印迭代值? 我希望有
C:\Users\~\Temp\workspace_folder_1
C:\Users\~\Temp\workspace_folder_2
由于
答案 0 :(得分:2)
您需要使用int2str