So i built a small app and for the sake of the example
I have a for loop in it that runs k times
inside of the for loop i have the index pointed to a numeric field in the app
Aka i want it to print out what index its at.
It will not update real time. It will only update it onces the loop is funished despite the call to transfer the index into the box.Value property is inside the loop.
What is up with this?

 채택된 답변

Mohammad Sami
Mohammad Sami 2021년 8월 2일

0 개 추천

include the drawnow command in your loop to force an update to the UI.

댓글 수: 1

Thanks that worked but wow
That just killed my loops speed
more then 10ms more per iterations
I wont be able to use that. That is really really really bad.
Why cant matlab make anything that is actually fast?

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

릴리스

R2020b

질문:

2021년 8월 2일

댓글:

2021년 8월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by