From caa6d5d93e7382165167fbaefbaf9d38e26ca909 Mon Sep 17 00:00:00 2001
From: Johannes Pfeifer <jpfeifer@gmx,de>
Date: Wed, 27 Aug 2014 22:26:03 +0200
Subject: [PATCH] Fix display of MH-history if parameter names do not have same
 length

In this case, cell2mat fails, because the dimensions are not consistent. Using char() instead padds with spaces

(cherry picked from commit 47b1a2df74cf1f643ca913ab4ff6c2057e8b58cf)
---
 matlab/internals.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/matlab/internals.m b/matlab/internals.m
index 273f1401ec..be69e4defb 100644
--- a/matlab/internals.m
+++ b/matlab/internals.m
@@ -137,7 +137,7 @@ if strcmpi(flag,'--load-mh-history') || strcmpi(flag,'--display-mh-history')
             d1s = size(d1,2);
             d2s = size(d2,2);
             c0 = repmat('   ',length(names)+2,1);
-            c1 = char(' ', repmat('+',1,size(cell2mat(names),2)), cell2mat(names));
+            c1 = char(' ', repmat('+',1,size(char(names),2)), char(names));
             s1 = char(' || ','++++',repmat(' || ', length(names),1));
             t1 = repmat(' ',1,d1s);
             if d1s<=7
-- 
GitLab