
Re: parfor: keep outputs with same output filename
Posted:
Jul 23, 2012 10:15 AM


"Torsten" <Torsten.Hennig@umsicht.fraunhofer.de> wrote in message news:1f1093fd7d4b4559882c5882aac33074@h20g2000yqe.googlegroups.com...
*snip*
> Filenames in MATLAB have to start with a letter. > Look at "Naming Other Files" under > http://www.mathworks.de/help/techdoc/matlab_prog/f1061281.html
This is true for MATLAB program files, but MATLAB can write to a data file whose name starts with a number or other symbol perfectly well.
fid = fopen('1234567.txt', 'wt'); for k = 1:10 fprintf(fid, '%d\t%d\n', k, k.^2); end fclose(fid); type 1234567.txt
1 1 2 4 3 9 4 16 5 25 6 36 7 49 8 64 9 81 10 100
That documentation section to which you linked appears to be incorrect. MEXfile names do need to satisfy the requirements other MATLAB program files need to satisfy (ISVARNAME) but MATfiles don't necessarily need to do so. I'm not certain about Simulink model files, though I'd guess they fall in the program file category. I'll note that to the documentation staff.
 Steve Lord slord@mathworks.com To contact Technical Support use the Contact Us link on http://www.mathworks.com

