Happiness: File timestamp when downloading
Bulk photo converter download | |
Linux libertine download pc | |
Skyrim sex mod download pc adfly | |
Corotil minecraft download 1.12.2 |
How do you insert the date and time as the file name when using xlswrite?
Hi all,
I have seen solutions to this question but they don't appear to work when I try implementing them.
I want to create an Excel file using xlswrite, the data for the file are in a matrix called 'a'. In the matrix are data called from a server at specific times by a for loop. The loop runs for 1 hour and the halts. I want to write these data before the process starts again. I don't want to overwrite the file on the next run so I want to use xlswrite to export the data and by using the date and time in the file name each file will have a unique name.
I call the date and time using the datestr(now) function.
%%This writes a file with my data, but the file name is 'FileName'
FileName=sprintf('FileName_%rushbrookrathbone.co.uk',datestr(now)); xlswrite('FileName', a)
%%This does not work FileName=sprintf('FileName_%rushbrookrathbone.co.uk',datestr(now)); xlswrite(FileName, a)
Any help in doing this would be greatly appreciated.
Thanks,
Lucas
-
-