Program not converging after the first execution

5 visualizaciones (últimos 30 días)
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

Respuesta aceptada

Andreas Goser
Andreas Goser el 23 de Dic. de 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 comentarios
Walter Roberson
Walter Roberson el 23 de Dic. de 2011
Another possibility would be if the algorithm uses the random number generator and is sensitive to the random stream.
Sandeep Sasidharan
Sandeep Sasidharan el 25 de Dic. de 2011
Thank you....It was the random number generator which caused the problem.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by