Undefined function or variable
Mostrar comentarios más antiguos
Undefined function or variable 'Date2Num'. I am not sure whether this is due to a mix in coding from Python where Date2Num is used to convert date time objects to Matplotlib dates. What is the corresponding function in Matlab? Thanks in advance.
Error in VARToolbox_Primer (line 15)
datesnum = Date2Num(dates);
7 comentarios
Walter Roberson
el 24 de En. de 2021
MATLAB does not have native Matplotlib dates .
What is the input data type? What is the required output data type? Are you asking to convert datetime() objects to serial date numbers? If so, then datenum() applied to the datetime() objects.
economics student
el 24 de En. de 2021
Walter Roberson
el 24 de En. de 2021
What is done with datesnum ?
It looks to me as if you should likely use readtable() instead of xlsread()
economics student
el 24 de En. de 2021
Walter Roberson
el 24 de En. de 2021
What error message do you get with readtable()?
economics student
el 24 de En. de 2021
dpb
el 24 de En. de 2021
Date2Num is not builtin MATLAB function so looks like you're missing an m-file that went with the code you do have or if it is an attempt to use a Python function I believe you have to import it somehow--I've never done that so don't know the specifics.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Dates and Time en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!