Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to remove duplicate nodes from generated path and segments inbetween?

조회 수: 1 (최근 30일)
Xi Wen Lim
Xi Wen Lim 2016년 3월 26일
마감: Walter Roberson 2016년 3월 27일
I really need help on this. Been at it for a week.
I have a randomly generated path between nodes 1 to 25.
Initial generation: 1 6 7 2 1 6 7 8 9 4 3 2 1 6 7 12 11 16 21 22 23 24 19 20 25
I want to remove all repeated segments and nodes so based on this, the final path I want is:
(1, 6, 7, 12, 11, 16, 21, 22, 23, 24, 19, 20, 25)
How should I do this? Pls help.
This is merely a sample. I need to make the code be able to sort through a path with 500 elements or so. :( Pls help. I'm desperate.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by