Use the ‘First Part’ as indices into the ‘Second Part’.
For example:
FirstPart = [1 8 12 13 14 9 3 2];
NextPart = [2.0000 0
1.9829 0.1305
1.9319 0.2588
1.7321 0.5000
1.4142 0.7071
0.7654 0.9239
0.0000 1.0000
2.2000 0];
Result = NextPart(FirstPart(1:2),:)
Result =
2.0000 0.0000
2.2000 0.0000
Use all of ‘FirstPart’ in your code. I just used ‘FirstPart(1:2)’ because that’s all we have to work with.
