Fix for Octave (need to add extension of the m script).

time-shift
Stéphane Adjemian (Scylla) 2013-11-29 15:49:32 +01:00
parent c1c656f4d9
commit 8eb45edb92
1 changed files with 6 additions and 3 deletions

View File

@ -33,9 +33,12 @@ function [freq,init,data,varlist,tex] = load_m_file_data(file)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
[basename, ext] = strtok(file,'.');
run(basename);
if isoctave
run(file);
else
[basename, ext] = strtok(file,'.');
run(basename);
end
if exist('INIT__','var')
if isdate(INIT__)