0001 function A = findA_anchors(problem)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 assert(isfield(problem,'M'),'problem structure must contain the field M.');
0017 problem_name = problem.M.name();
0018
0019 assert(contains(problem_name,'Product rotations manifold') &&...
0020 contains(problem_name,'anchors') &&...
0021 ~startsWith(problem_name,'Product manifold'),['The manifold must '...
0022 'be rotation matrices with anchors'])
0023
0024 indexA = strfind(problem_name,'indices ') + 8;
0025 A = str2double(problem_name(indexA));
0026 for i = indexA+3:3:length(problem_name)
0027 A = [A,str2double(problem_name(i))];
0028 end
0029
0030 end