[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:
parent
d3dfc3f608
commit
f988382b36
1 changed files with 3 additions and 0 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue