Undefined function or variable
Mostra commenti meno recenti
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 Commenti
Walter Roberson
il 24 Gen 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
il 24 Gen 2021
Walter Roberson
il 24 Gen 2021
What is done with datesnum ?
It looks to me as if you should likely use readtable() instead of xlsread()
economics student
il 24 Gen 2021
Walter Roberson
il 24 Gen 2021
What error message do you get with readtable()?
economics student
il 24 Gen 2021
dpb
il 24 Gen 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.
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Dates and Time in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!