Menu
![]() ![]() How to get a matrix of serial date numbers? Warning: Usage of DATENUM with empty date character vectors or empty strings is not supported.įdlable1 =fdlable(:,1:2:23) 811 x 12 from 811 x 23 Here the assignment fails because there are empty cells in fdlable1: date_num = fdlable1, 'UniformOutput', false) Must I convert fdlable1 'm/d/yyyy' to a string variable first before using datenum? I get a cell array rates fdlable1 811 by 12 of Excel dates, format m/d/yyyy that I want convert to serial date numbers through datenum From reading in this Excel file into MATLAB = xlsread('C:\Users\Nancy\Documents\Research\Data\USTreasury\USTreasuryDataset\FredTreasuryRatesMon','A8:X818')
0 Comments
Leave a Reply. |