Program not converging after the first execution

조회 수: 5 (최근 30일)
Sandeep Sasidharan
Sandeep Sasidharan 2011년 12월 23일
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

채택된 답변

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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by