import date from matlab to ms excel in the form 'HH:MM PM' using xlswrite
Mostra commenti meno recenti
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');
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Spreadsheets in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!