From 8eb45edb921db05ebe099423b0d771c8d930db7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Scylla=29?= Date: Fri, 29 Nov 2013 15:49:32 +0100 Subject: [PATCH] Fix for Octave (need to add extension of the m script). --- matlab/load_m_file_data.m | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/matlab/load_m_file_data.m b/matlab/load_m_file_data.m index 6b39902d4..b69258583 100644 --- a/matlab/load_m_file_data.m +++ b/matlab/load_m_file_data.m @@ -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 . -[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__)