How to correct the data loading?

1 view (last 30 days)
Houda on 4 Oct 2015
Commented: Walter Roberson on 4 Oct 2015
I have downloaded the matlab code of Burnside 1999 (Gmm estimation), you can find the folder at I followed the isntruction in the readme file, but I have this error message
>> cd C:\Users\HOUDA\Documents\burnside\indivis
ans =
Indivisible Labor Model Deterministic Trend
ans =
Parameters: Theta,lnA,rhoA,sigA,Ay,lnGamm,Delta,Alpha,5 Data Mom
??? Error using ==> load
Number of columns on line 115 of ASCII file
must be the same as previous lines.
Error in ==> indivis at 47
load 'hoarding.dat' ;
please help I have ti replicate this code.

Answers (1)

Jan on 4 Oct 2015
Open the file hoarding.dat in a text editor and delete the character in the last line. In my editor it looks like a small arrow.
I recommend to contact the author and asking to fix this file.
  1 Comment
Walter Roberson
Walter Roberson on 4 Oct 2015
It is a control-Z . If read in MS Windows in text mode it should indicate end of file. Any other system, or not in text mode and it would cause problems.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!