From 42c3b5309061da250e8d8556c61aed1ed5af897a Mon Sep 17 00:00:00 2001
From: Johannes Pfeifer <jpfeifer@gmx.de>
Date: Fri, 27 Dec 2024 14:36:07 +0100
Subject: [PATCH] identification: format display of accepted parameter draw

---
 matlab/+identification/run.m | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/matlab/+identification/run.m b/matlab/+identification/run.m
index 41319925c2..522864f7d6 100644
--- a/matlab/+identification/run.m
+++ b/matlab/+identification/run.m
@@ -504,7 +504,10 @@ if iload <=0
         else
             % found a (random) point that solves the model
             fprintf('Found a random draw from the priors that solves the model:\n');
-            disp(params);
+            labels = name;
+            headers = {'Name', 'Value'};
+            lh = cellofchararraymaxlength(labels)+2;
+            dyntable(options_, 'Feasible draw', headers, labels, params', lh, 10, 6);
             fprintf('Identification now continues for this draw.');
             parameters = 'Random_prior_params';
             parameters_TeX = 'Random prior parameter draw';
-- 
GitLab