i want to set time when i plot graph in gui
Show older comments
when i put
09:12:45 ->Edit text 1
12:00:12 ->Edit text 2
i want to plot graph between text 1 and text 2 time
is it possible?
handles.fileName=uigetfile('*.xls');
fileName=handles.fileName;
[~,txt,~]=xlsread(fileName,'C27:C30000');
[Ch1,~,~]=xlsread(fileName,'E27:E30000');
[Ch2,~,~]=xlsread(fileName,'F27:F30000');
[Ch3,~,~]=xlsread(fileName,'G27:G30000');
[Ch4,~,~]=xlsread(fileName,'H27:H30000');
[Ch5,~,~]=xlsread(fileName,'I27:I30000');
[Ch6,~,~]=xlsread(fileName,'J27:J30000');
[Ch7,~,~]=xlsread(fileName,'K27:K30000');
[Ch8,~,~]=xlsread(fileName,'L27:L30000');
[Ch9,~,~]=xlsread(fileName,'M27:M30000');
[Ch10,~,~]=xlsread(fileName,'N27:N30000');
[Ch11,~,~]=xlsread(fileName,'O27:O30000');
[Ch12,~,~]=xlsread(fileName,'P27:P30000');
[Ch13,~,~]=xlsread(fileName,'Q27:Q30000');
[Ch14,~,~]=xlsread(fileName,'R27:R30000');
[Ch15,~,~]=xlsread(fileName,'S27:S30000');
[Ch16,~,~]=xlsread(fileName,'T27:T30000');
[Ch17,~,~]=xlsread(fileName,'U27:U30000');
[Ch18,~,~]=xlsread(fileName,'V27:V30000');
[Ch19,~,~]=xlsread(fileName,'W27:W30000');
[Ch20,~,~]=xlsread(fileName,'X27:X30000');
char(txt); %txt is time
DateNumber=datenum(txt);
Date=datetime(DateNumber,'ConvertFrom', 'excel');
Date1=datetime(Date,'Format','hh:mm:ss');
Answers (0)
Categories
Find more on Graph and Network Algorithms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!