필터 지우기
필터 지우기

Time vs Load plot

조회 수: 1 (최근 30일)
Erkan Azizoglu
Erkan Azizoglu 2021년 6월 8일
댓글: dpb 2021년 6월 8일
Hi, I have a load cell and would like to plot a time vs load graph. I can read the load however I am having trouble with x axis (Time).
The question is, how can I make an x axis that starts from 0 with the first measurement and has a sensivitiy at milisecond level. The duration of measurement could be a pre-set duration or limited with a number of iterations.
  댓글 수: 3
Erkan Azizoglu
Erkan Azizoglu 2021년 6월 8일
Thank you for the answer!
I think it is the second case. I tried tic and toc and I placed the measurement command between them and here is what I see. So each measurement has a different duration.
Should I go on with tic - toc?
dpb
dpb 2021년 6월 8일
It would seem so, then, yes. You need to add in a return variable on LHS to save each duration, of course. The resulting time vector will be the cumsum() result of the individual observations.
And, of course, you'll want to preallocate the dt vector to the number of observations you're taking or a very large number so you aren't dynamically reallocating the vector each pass.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by