The problem is with the statement:
unique(FUD(i,1))
if you replace it with:
x = 'JAN_RP10 .csv';
switch x;
...
everything works well. So check what FUD(i,1) is and check the unique(FUD(i,1)) for all values of i. Anyways, to say what exactly is happening you should give an example of FUD cell.