I want to save a matfile name optimization with the name Project and add time in addition to the name like Project_20/03/2019.mat. Please how do i do it. I tried this but it didnt work
time = datestr(now, 'yyyy_mm_dd'); filename = sprintf('Optimization_%s.mat',time)save ('C:\dannyuser\Project',filename,datestr(now))
Best Answer