[Matlab] Check for sparse arrays in the Solution 'set' function

Patch provided by Bryan Weber.

Resolves Issue 140.

Cherry-pick of trunk r2659.
This commit is contained in:
Ray Speth 2014-01-23 03:06:11 +00:00
parent d3dfc3f608
commit f988382b36

View file

@ -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'