- #1
adeeyo
- 20
- 0
Hi everybody,
I need assistance. I have excel file that conntains a date column and another column. I wish to plot the date on x-axis and the second column on y axis. I wrote the MATLAB code below.
This is my code. data=xlsread('DataTest','Sheet1'); q=data(:,2); time=data(:,1);
Error message
Attempted to access data(:,2); index out of bounds because size(data)=[193,1].
Matlab is not reading the first column of the excel file that contains the date so it takes the second column as the first column as a result it could not find second column. Please help
I need assistance. I have excel file that conntains a date column and another column. I wish to plot the date on x-axis and the second column on y axis. I wrote the MATLAB code below.
This is my code. data=xlsread('DataTest','Sheet1'); q=data(:,2); time=data(:,1);
Error message
Attempted to access data(:,2); index out of bounds because size(data)=[193,1].
Matlab is not reading the first column of the excel file that contains the date so it takes the second column as the first column as a result it could not find second column. Please help