From 8ef96c46ca037760b0ad4c3cbf4b5c24a6ec3554 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Mon, 12 Oct 2015 16:17:56 +0200 Subject: [PATCH] Check whether steady state file returns column vector --- matlab/evaluate_steady_state.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/matlab/evaluate_steady_state.m b/matlab/evaluate_steady_state.m index 0e6565d8c..461d6a905 100644 --- a/matlab/evaluate_steady_state.m +++ b/matlab/evaluate_steady_state.m @@ -185,6 +185,9 @@ function [ys,params,info] = evaluate_steady_state(ys_init,M,options,oo,steadysta % explicit steady state file [ys,params,info] = evaluate_steady_state_file(ys_init,exo_ss,M, ... options); + if size(ys,2)>size(ys,1) + error('STEADY: steady_state-file must return a column vector, not a row vector.') + end if info(1) return; end