发布网友
共1个回答
热心网友
使用num2str函数将循环变量改为string类型。使用strcat将多个string连接。 如 i 是你的变量: titleName = strcat('my',num2str(i),'figure'); title(titleName);