Program not converging after the first execution

8 Ansichten (letzte 30 Tage)
Sandeep Sasidharan
Sandeep Sasidharan am 23 Dez. 2011
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

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by