acceleration function not working in script?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello, i'm trying to assign the value returned from the acceleration function in the mobiledev object
In the m variable I can see the acceleration values but when I call the acceleration function and assign its output to the variable 'x' nothing is in it.
When I run m.acceleration in the command window it works fine so why doesn't it work in this script?
Thanks

댓글 수: 0
답변 (1개)
Yongjian Feng
2021년 7월 3일
In general, the debugger shall be able to show you the reason. Just run your Untitle2.m using the matlab debugger, and put a breakpoint in line 5. Then you can examine m directly.
댓글 수: 4
Yongjian Feng
2021년 7월 4일
Oh, a time delay? The command line window somehow is slower than the function call? Where do you put the waitfor function?
참고 항목
카테고리
Help Center 및 File Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!