Page 1 of 1

problem in import xls data

PostPosted: Tue Jan 25, 2011 3:10 am
by jill1009
Hi,
I'm trying to run smets and wouters code for their 2007 paper. But it seems there are problems in read the data file.
Error using cell.strmatch at 21
requires character array or cell array of strings as inputs.
error in read_variables at 74

Anyone could help me out?
Thank you very much !!!!

Re: problem in import xls data

PostPosted: Thu Jan 27, 2011 8:19 am
by jpfeifer
If you try to read in the data from the Excel-file you must specify the cell range in this file (only the part with observables at the end). Consult the Dynare manual for the syntax. As far as I know, there is also a file called usmodel_data.mat that only contains the required variables. Use this instead with the same mod-file and it should work without bothering about xls_range etc..