Hi, I am facing an unexpected scenario while debugging. Sample time of my model is 0.002 (Discreet System). I am running a m file at each sample time in the background. following is my sample code. curTime is noting but current simulation time ----------------------------- if curTime == 1.400 a = 09; end ------------------------------ Now problem is after some time my simulation time is appearing as 1.40000000000000001 so if condition (if curTime == 1.400) is never getting satisfied. Can any body suggest a possible solution.

 채택된 답변

Sean de Wolski
Sean de Wolski 2014년 9월 23일

0 개 추천

댓글 수: 1

Shrirang
Shrirang 2014년 9월 23일
Oh.. I got it !! I never thought i would face this. . Thank you ..

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Aerospace Blockset에 대해 자세히 알아보기

제품

질문:

2014년 9월 23일

댓글:

2014년 9월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by