From bdee85f01805652ad63aa6a8476e2a70e1f5ea6a Mon Sep 17 00:00:00 2001 From: Marco Ratto <marco.ratto@ec.europa.eu> Date: Thu, 1 Feb 2018 19:14:13 +0100 Subject: [PATCH] fixed bug to logical if condition (cherry picked from commit a7bc6414f504313c7b21cb145c346a3ec6748ef3) --- matlab/utilities/dataset/makedataset.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/utilities/dataset/makedataset.m b/matlab/utilities/dataset/makedataset.m index 85d86d8419..12fa0633b4 100644 --- a/matlab/utilities/dataset/makedataset.m +++ b/matlab/utilities/dataset/makedataset.m @@ -80,7 +80,7 @@ elseif isempty(DynareOptions.datafile) && ~isempty(DynareOptions.dataset.series) elseif ~isempty(DynareOptions.datafile) && isempty(DynareOptions.dataset.file) datafile = DynareOptions.datafile; newdatainterface = 0; -elseif isempty(DynareOptions.datafile) && ~isempty(DynareOptions.dataset.file) +elseif ~isempty(DynareOptions.datafile) && ~isempty(DynareOptions.dataset.file) error('makedataset: You cannot simultaneously use the data command and the datafile option (in the estimation command)!') else error('makedataset: You have to specify the datafile!') -- GitLab