문제

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