Matlab: using strcat () to modify the name of the file

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/Teddygogogo/article/details/83056181

To change a factor several times, and then save the file with the name change factors:

string_combine=strcat(str1,str2,……,strn)

Function strcat (str1, str2, ......, strn) can be a string str1, str2, ......, strn eleven connected to form a new string string_combine

The conversion factor can be a string value:

str_number=num2str(value);

It is possible to output the image file name change as a factor:

filename=strcat('value=',str_number,'jpg');

imwrite(img_data,filename);

Guess you like

Origin blog.csdn.net/Teddygogogo/article/details/83056181