Program not converging after the first execution
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am trying to implement ICP algorithm using MATLAB for point clouds. While running the program for the first time, I am getting the desired results. But when I again execute it, the program seems not to converge and gives undesired outputs. I have to restart matlab every time to see the outputs. Is there any fix for this problem?
All suggestions will be highly appreciated
Thanks
Sandeep
0 commentaires
Réponse acceptée
Andreas Goser
le 23 Déc 2011
This sounds like there are issues with variables (names) that are used for your calculation, but are also overwritten. Thus different values are used for the second run with different results.
You can verify this by clearing all variables before the second run.
In general, you can debug the code and look at intermediate results and compare first and second run. This will guide to the line(s) causing the issue.
2 commentaires
Walter Roberson
le 23 Déc 2011
Another possibility would be if the algorithm uses the random number generator and is sensitive to the random stream.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!