Effacer les filtres
Effacer les filtres

how to store and match results in cell or struc arrays

1 vue (au cours des 30 derniers jours)
Muhammad Usama
Muhammad Usama le 7 Jan 2019
Commenté : Bob Thompson le 23 Jan 2019
Hello!
I am testing randoms path to estimate the shortest path for a number iterations. I want to store each tested path in any array type. After generating a new path, I want to match it from the previous stored paths. If new path is already tested, I just want to skip and generate new path.
  7 commentaires
Jan
Jan le 23 Jan 2019
@Bob: By the way, redifing "path" as a variable can cause strange collision with the built-in function during debugging.
Bob Thompson
Bob Thompson le 23 Jan 2019
That is very true. My intention was to write pseudo code that gave a clear correlation between Muhammad's expressed intentions and the structure of the code. Perhaps I could have been more clear with variable names.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Traveling Salesman (TSP) dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by