I am trying to create a filename for a .csv file using an existing variable name, which is a number e.g. '5100', and a manual input, e.g. 'files'.
Here, A is a matrix of data. Within that, I find the rows that contain zeros, and take the value in the first column of those particular rows. It is these values which I put in my output file that I am trying to write to a .csv file.
If I try
...this works, but I would like to have part of the filename change on each iteration of the loop, depending on the value of serialNo.
The value of serialNo changes on each iteration of an earlier part of my code...
serialNo is a 1x1 double, is this the problem? I tried converting it using char() but this didn't work.