Commit 4de6cc86 authored by Pierre Cazenave's avatar Pierre Cazenave
Browse files

Fix the way the number of node strings is calculated to work on older MATLAB...

Fix the way the number of node strings is calculated to work on older MATLAB versions (specifically v2010a).
parent e257e43a
......@@ -212,7 +212,7 @@ allNodes(allNodes == 0) = [];
% Add a new field to Mobj with all the nodestrings as a cell array.
nodeStrings = find(allNodes < 0);
read_obc_nodes = cell(1, length(nodeStrings));
for nString = 1:sum(allNodes < 0)
for nString = 1:sum(allNodes(:) < 0)
if nString == 1
read_obc_nodes{nString} = abs(allNodes(1:nodeStrings(nString)));
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment