Correct displayed information if not total dataset is used.

time-shift
Johannes Pfeifer 2013-06-09 10:45:41 +02:00
parent 9f9c2c1ffd
commit 79748dd150
1 changed files with 3 additions and 0 deletions

View File

@ -56,6 +56,9 @@ if dataset_.info.nvobs-size(rawdata,2)
'variables doesn''t match the number of variables in the database.'])
end
if size(rawdata,1)~=dataset_.info.ntobs
fprintf('Restricting the sample to observations %d to %d. Using in total %d observations. \n',first,dataset_.info.ntobs,dataset_.info.ntobs-first+1)
end
rawdata = rawdata(first:(first+dataset_.info.ntobs-1),:);
% Take the log (or anything else) of the variables if needed