Вопрос

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