I have a string variable, which is changing during the loop, it is named filename and it takes on values like 'file001.txt', 'file002.txt'… I am saving the files 'file001.txt', 'file002.txt' in a loop and would like to call the filename variable
>> fid_out = fopen('/Users/Y*****/Downloads/case_data/train2/3/"filename"', 'w'); at the place "filename", I would like it to be 'file001.txt', 'file002.txt'…… how can I realize that?
Best Answer