Hi everybody,(adsbygoogle = window.adsbygoogle || []).push({});

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

**Physics Forums - The Fusion of Science and Community**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Excel date column export into Matlab

Loading...

Similar Threads - Excel date column | Date |
---|---|

Putting Excel graph into LaTeX | Feb 10, 2018 |

Excel Error Bars | Nov 26, 2017 |

Plotting two matrices in Excel | Jan 5, 2017 |

Excel Plots Labels | Jan 5, 2017 |

Converting string of dates in Excel | Jun 12, 2015 |

**Physics Forums - The Fusion of Science and Community**