Commit ddf90fb7 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

Merge pull request #533 from JohannesPfeifer/master

Fix bug when datafile was changed and nobs resulting from old dataset wa...
parents 38ef4c23 530ad8e2
......@@ -32,7 +32,7 @@ end
rawdata = read_variables(datafile,varobs,[],xls.sheet,xls.range);
% Get the (default) number of observations.
if isempty(nobs)
if isempty(nobs) || rows(rawdata)<nobs+first-1 %case 2: dataset has changed
nobs = rows(rawdata)-first+1;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment