% This is the main test code
% The function 'myfunction' will call Dynare to solve a perfect foresight
% solution. Usually a Matlab function will only return its output in the 
% workspace, ignoring everything else produced during the process. 
% However, Dynare managed to leave all its output in the upper level 
% workspace.

clear;

Knew = 8.5;
output = myfunction(Knew);


