DynareTeam/dynare — pull request #741 by JohannesPfeifer (2014-09-23 05:06:11+00:00)
Title: Change load_m_file_data.m to more direct approach of reading variables

Ignores all variables that are not member of options_.varobs instead of reading full content of m-file and then aborting if one irrelevant variable has not the same dimensions as the observables.
That way all, other computations the user does in the m-file are hidden from Dynare and do not matter when reading the data.