To retrieve any data that YADA currently has at its disposal you only need to find the handle of the main program window and search for certain field that you can retrieve from it.
maingui = findobj('Type','figure','Tag','YADA');
controls = get(maingui,'UserData');
CurrINI = get(controls.filemenu,'UserData');
DSGEModel = get(controls.open,'UserData');
The first line locates the handle of the main YADA dialog. The second line retrieves the structure with the handles to all controls on this dialog. The third get access to a structure with initialization information. This structure is necessary when sending information to any of YADA's dialogs. Finally, the fourth line collects the structure with all DSGE model setting. For example, the data on the endogenous variables is located in the nxT matrix DSGEModel.Y, while the names of the observed variables are found in string matrix DSGEModel.VariableNames. Similarly, the exogenous variables are stored in the matrix DSGEModel.X and their names in the string matrix DSGEModel.XVariableNames.
These commands can, for instance, be useful in the file with parameters to update or the file with parameters to intialize. In case the first file is used, it may be useful to check if the field UserVariables exist in the structure with model parameters via the test isfield(ModelParameters,'UserVariables'). If negative, any estimates based on the data may be performed. and if positive estimates may already be available as a field of ModelParameters.UserVariables.
Page url: http://www.texlips.net/yada/help/index.html?how_do_i_get_access_to_the_da2.htm