Bonjour,
J'ai un vecteur temps et data à écrire dans un fichier texte
le temps est en version "matlab", j'aimerais donc un colonne avec un version friendly du temps:Code:
1
2
3 fid = fopen('TimeData','wt'); fprintf(fid,'%d %d\n',[time data]);%.'); fclose(fid);
qui donne :Code:
1
2 timeFriendly=datetime(time,'Format','yyyy-MM-dd''T''HHmmss','ConvertFrom','datenum');
et que j'aimerais maintenant ajouter au .txtCode:
1
2
3 [...] 2019-06-05T033105
mais %s n'est pas le bon format?Code:
1
2
3 fid = fopen('TimeData','wt'); fprintf(fid,'%s %d %d\n',[timeFriendly time data]);%.'); fclose(fid);
une aide?
Merci