I am reading from a file that has 7 columns. I imported it into a table, and I converted T.Var1 into UTC hh:mm:ss:FFF time. T.Var2, T.Var3, T.Var4 and T.Var5 all need to be combined into the variable "source" so I can plot it against timeUTC. Then I would like to have the user change the range of source that is being plotted, where they would be able to chose the range of T.Var2 to be from x to y for example.
clearclcclose all[FileName,PathName]=uigetfile(':','Select the LYLOUT file');T=readtable(fullfile(PathName,FileName));timeUTC = (datestr(seconds(T.Var1),'HH:mm:ss:FFF'));sizeTimeUTC = size(timeUTC);figure('units','normalized','outerposition',[0 0 1 1]); plot(size,'b')NumTick = 10;set(gca,'XTickLabelRotation',45);xticks=linspace(1,sizeTimeUTC(1),NumTick);set(gca,'XTick',xticks);set(gca,'XTickLabel',timeUTC);
How would I go about doing this?
EDIT: Here are the first few rows of the table as requested.
- 9601.762212787 33.70270888 -85.26950474 311276.18 0.04 24.4 0xa51
- 9601.833916448 33.57688907 -82.95670785 183351.65 2.57 23.5 0x358
- 9604.167990668 33.69930560 -83.95209122 38865.36 0.69 9.5 0xb18
- 9604.906035077 34.16707482 -85.25531467 12077.34 1.93 13.3 0x358
- 9605.012282662 34.20090438 -85.37965820 7081.78 3.71 18.4 0x368
Best Answer