animate for a given time
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello,
I need to animate a pendulum for about 5 seconds and then plot the solution for second = 0, 1, 2, 3 and 4.
I tried to use tic toc function but I am not sure this is working. Can anyone have a look and help me to implement a function that picks up the right t for the times I need?
댓글 수: 0
답변 (1개)
Kevin Phung
2019년 4월 30일
tic toc is used to see how long processes take in your script. This is not relevant to what you are trying to do.
You should take a look at this documentation:
This should have everything you'll need.
참고 항목
카테고리
Help Center 및 File Exchange에서 Animation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!