Skip to content

Commit df7620c

Browse files
committed
tries to make itfaster
1 parent e883fac commit df7620c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

matlab_tool/getCurrentMusclePathAsMat.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050

5151
% point under examination
5252
curr_point = curr_PathPointSet.get(n_p);
53-
attachBody = char(curr_point.getBodyName());
53+
attachBody = curr_point.getBodyName();
5454

5555
% if pathpoint is conditional, then check if it is active
5656
if strcmp(char(curr_point.getConcreteClassName), 'ConditionalPathPoint')
@@ -59,15 +59,15 @@
5959
if cond_viapoint.isActive(s)
6060
% if yes add it to point set
6161
mus_pointset_mat(n_pp, 1:3) = [curr_point.getLocation.get(0), curr_point.getLocation.get(1), curr_point.getLocation.get(2)]; %#ok<*AGROW>
62-
mus_bodyset_list(n_pp) = {attachBody};
62+
mus_bodyset_list(n_pp) = {char(attachBody)};
6363
n_pp = n_pp+1;
6464
else
6565
continue
6666
end
6767
else
6868
% if not conditional add it
6969
mus_pointset_mat(n_pp, 1:3) = [curr_point.getLocation.get(0), curr_point.getLocation.get(1), curr_point.getLocation.get(2)];
70-
mus_bodyset_list(n_pp) = {attachBody};
70+
mus_bodyset_list(n_pp) = {char(attachBody)};
7171
n_pp = n_pp+1;
7272
end
7373
end

0 commit comments

Comments
 (0)