How to use variables as filename when saving to a .csv file
Afficher commentaires plus anciens
Hello, I have a program,which takes start date and end date from user,I would like to use the variables as the filename when outputing to a .csv file. I have the following variables :
start_date =[2015, 1, 1];
end_date = [2015, 1, 2];
I want my csv file to be saved in this manner:
output_filename = "start_date " -- "end_date"--"data".csv.
Note: start_date is 1x6 double and end_date is 1x3 double and outputfilename is storing file name to be saved.
Thanks alot in advance.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Holidays / Seasons dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!