problem in import xls data

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

problem in import xls data

Postby jill1009 » Tue Jan 25, 2011 3:10 am

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 !!!!
Attachments
usmodel_stst.mod
(966 Bytes) Downloaded 93 times
usmodel.mod
(11.67 KiB) Downloaded 118 times
usmodel_data.xls
(191 KiB) Downloaded 110 times
jill1009
 
Posts: 23
Joined: Tue Jan 11, 2011 10:16 pm

Re: problem in import xls data

Postby jpfeifer » Thu Jan 27, 2011 8:19 am

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..
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests