From 459d6ded6ec4145b5436a59b300e169bb7406169 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer <jpfeifer@gmx.de> Date: Wed, 24 Nov 2021 18:59:48 +0100 Subject: [PATCH] get_minimal_state_representation.m: set undefined output argument --- matlab/get_minimal_state_representation.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/matlab/get_minimal_state_representation.m b/matlab/get_minimal_state_representation.m index 3882c49dc8..4b68bfceef 100644 --- a/matlab/get_minimal_state_representation.m +++ b/matlab/get_minimal_state_representation.m @@ -117,6 +117,10 @@ else end minSYS.dD = SYS.dD; end + else + minSYS = []; + minns = []; + return; end catch minreal_flag = 0; % if something went wrong use below procedure -- GitLab