From 0cb1b6795b8ce4260208e62d295a8ccb8be359f7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Scylla=29?=
 <stephane.adjemian@univ-lemans.fr>
Date: Mon, 23 Jun 2014 12:24:17 +0200
Subject: [PATCH] Fixed bug in set_prior routine (options_.varobs is a cell
 array of strings).

---
 matlab/set_prior.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/matlab/set_prior.m b/matlab/set_prior.m
index 6b2bc90a1d..c2ce2f2448 100644
--- a/matlab/set_prior.m
+++ b/matlab/set_prior.m
@@ -96,7 +96,7 @@ if nvn
     bayestopt_.p3 = [ bayestopt_.p3; estim_params_.var_endo(:,8)]; %take generalized distribution into account
     bayestopt_.p4 = [ bayestopt_.p4; estim_params_.var_endo(:,9)]; %take generalized distribution into account
     bayestopt_.jscale = [ bayestopt_.jscale; estim_params_.var_endo(:,10)];
-    bayestopt_.name = [ bayestopt_.name; options_.varobs{estim_params_.nvn_observable_correspondence}];
+    bayestopt_.name = [ bayestopt_.name; transpose(options_.varobs(estim_params_.nvn_observable_correspondence))];
 end
 if ncx
     xparam1 = [xparam1; estim_params_.corrx(:,3)];
-- 
GitLab