I am trying to find the frequency range from the time range that I have made. I read the FFT documentation, but it is not working for my code.
spindle_speed = 960
c = inv(spindle_speed/60)*n ;
d = c/100;
f = spindle_speed/60*(0:d:(c/2))/c;
This code works for a single cycle, the frequency should be
f = 1/(2*t)
But for more than 1 cycle, this code is not giving correct answers
Does anyone know?