I'm teaching myself some DSP for future projects and my method is mostly learn by doing. I have this time-domain function with its correspondent frequency-domain transform:
$$s_1(t) = (t-2)e^{-t}u(t-2) $$
$$S_1(f)=\frac{e^{-2(1+j2\pi f)}}{(1+j2\pi f)^2} $$
Plotting the frequency-domain function in Matlab, for a frequency vector ranging from [-50,50) in steps of 0.1 (1000 values of frequency).
The question I don't know how to solve, is about the period sample. I know each sample is one of those dots, and that despite it can be arbitrary (choosed by us), there is criteria to follow in order to pick the best sampling rate possible to avoid aliasing.
If I set the frequency vector like I did, that means I already determined the sample rate, am I right? That also means, I can compute the sampling period as:
Ts=1/fs; fs=0.1 being the sample frequency.
Or should I go with another one? Should I try Nyquist (since its a continuous signal)? If so, how could I apply it?
Thanks for any suggestion you may have on this.