MATLAB: Finding the sampling frequency from the following

sampling frequency

Hi everyone,
I have to work out the sampling frequency. I have set up a vector of time values with 128 elements sampled at twice a second. The signal has to be calculated with five cycles in 63.5s and the code for that is:
t = 0:0.5:63.5; yt = sin(2*pi*t*5/63.5);
How do I get the sampling frequency from this information?
Thanks!

Best Answer

Sampling frequency is 1 divided by sample rate.
1 / (M seconds per sample) = ? samples per second
and samples per second is Hz .