uiputfile doesn't do any saving at all; it just returns the filename selected by the user for the subsequent file operation. You need to follow up with a call tocsvwrite or similar to actually save the file.
ASIDE TMW:
This is the second time I've seen the identical question/misunderstanding in the last couple of weeks. Looks like documentation should be more clear on this point.
Best Answer