How do I create a csv file with date as the name of the csv file. I tried doing it, but the date won't appear only the name does. The language is Scilab which is similar to Matlab.

有帮助吗?

解决方案

I do not understand your question fully. But following the csvWrite documentation and the date documentation. You could do someting like this

filename_with_date_string = date() + ".csv";
directory_path = TMPDIR;

// Some matrix you want to save
M = [1:10] * 0.1;     

// Create the file
file = fullfile(directory_path, filename_with_date_string);

// Fill it with your matrix
csvWrite(M, file);
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top