필터 지우기
필터 지우기

Convert Excel date to use in MATLAB

조회 수: 1 (최근 30일)
Siskia Yarzagaray
Siskia Yarzagaray 2016년 5월 15일
답변: Walter Roberson 2016년 5월 15일
Halo, is there a way that I can convert the dates imported from Excel and then use this to plot graphs? The format from excel is: 11/23/2015, but MATLAB sees this as text data and I cant scatter plot it against a series of number. The error I get is: "Input arguments must be numeric".
  댓글 수: 1
Geoff Hayes
Geoff Hayes 2016년 5월 15일
Siskia - how do you want to use this date field to plot data? What is the code that you are using to read the data from file and then plot the data? What is the line of code that is generating this error? Please provide more details.

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2016년 5월 15일
If you are using R2014b or later, you can use readtable() to read the data and it will automatically convert the dates into datetime objects that can be plotted against.

추가 답변 (1개)

Stalin Samuel
Stalin Samuel 2016년 5월 15일

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by