Attempt to reference field of non-structure array.

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.

Attempt to reference field of non-structure array.

Postby newbie_dynar » Wed Jul 15, 2015 5:41 pm

Dear All,

i am quite new to this program so I apologise if i ask a trivial question. I tried to find an explanation for the problem i am facing but without luck. As per attached code, when i try to run I obtain the following mistake. I am totally clueless on its reason. Did i do some mistake on the computation of hte steady state ratio? Are the parameters wrong?

Thanks for any help,
Best
Paola

Attempt to reference field of non-structure array.
Error in list_of_parameters_calibrated_as_NaN (line 32)
idx = find(isnan(M_.params));
Error in test_for_deep_parameters_calibration (line 32)
plist = list_of_parameters_calibrated_as_NaN(M_);
Error in steady (line 33)
test_for_deep_parameters_calibration(M_);
Error in macro_project_hope (line 260)
steady;
Error in dynare (line 180)
evalin('base',fname) ;
>>
Attachments
wrong.mod
(3.35 KiB) Downloaded 68 times
newbie_dynar
 
Posts: 1
Joined: Wed Jul 15, 2015 5:35 pm

Re: Attempt to reference field of non-structure array.

Postby jpfeifer » Thu Jul 16, 2015 6:31 am

Do not put
Code: Select all
clear all;

in your mod-file. It will erase important variables created by Dynare. Dynare automatically does a clear all at the beginning
------------
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: Google [Bot] and 7 guests