From f988382b366a042be893b8ba99fefaad8bc605ff Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Thu, 23 Jan 2014 03:06:11 +0000 Subject: [PATCH] [Matlab] Check for sparse arrays in the Solution 'set' function Patch provided by Bryan Weber. Resolves Issue 140. Cherry-pick of trunk r2659. --- interfaces/matlab/toolbox/@Solution/set.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/interfaces/matlab/toolbox/@Solution/set.m b/interfaces/matlab/toolbox/@Solution/set.m index d723de461..1bc324004 100644 --- a/interfaces/matlab/toolbox/@Solution/set.m +++ b/interfaces/matlab/toolbox/@Solution/set.m @@ -58,6 +58,9 @@ nq = 0; while length(property_argin) >= 2, prop = property_argin{1}; val = property_argin{2}; + if issparse(val) + val = full(val); + end property_argin = property_argin(3:end); switch prop case 'Temperature'