Calculate cycle time for a signal by code

I want to calculate the cycle time for a signal (the frequency) by using a code (Matlab function block). For examble, in a motor rotor position the angle changes between 0 and 360 degrees, so the time between two identical values (cycle time) is needed to be calculated

댓글 수: 1

Need more information. Are you measuring motor speed, or does the motor actually change direction? fft is one way to measure and find a dominant frequency in a signal.

답변 (0개)

이 질문은 마감되었습니다.

제품

릴리스

R2021a

질문:

2022년 1월 25일

마감:

2023년 9월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by