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');
Best Answer