import date from matlab to ms excel in the form 'HH:MM PM' using xlswrite
Afficher commentaires plus anciens
this is my code. The problem is that in Ms excel the display for time is in the form of 22 34 12 34 54 65. there will be 6 numbers.
%%%System Date and Time %%%
ds=datestr (now, 'mmm dd, yyyy');
set(handles.date,'String',ds);
time=datestr (now, 'HH:MM PM');
set(handles.time,'String',time);
%%%%%DATA ACQUISITION %%%%%
LOAD1(i,:) = [LP1 LQ1 LV1 timex];
header = {'P(Watts)','Q(var)','V(volts)', 'TIME'};
%%DATA for LOAD 1
xlswrite(day,header,'LOAD1','A1');
xlswrite(day,LOAD1,'LOAD1','A2');
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Spreadsheets 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!