From 7deb45a840f4ca1ea207bc427045d8d750fc4ad2 Mon Sep 17 00:00:00 2001 From: "Bryan W. Weber" Date: Mon, 6 Jan 2014 18:46:43 +0000 Subject: [PATCH] [Matlab] Check for sparse arrays in the Solution 'set' function Resolves Issue 140. --- 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'