Can we sample and recover signals with non infinite "length" using the nyquist shannon theorem? For example if we have a signal
$$ x(t)= u(t+5)-u(t-5) $$ and we know that its sampling period T is less than 10s (T<10). Can we recover it using the nyquist theorem? If not , what could we do to recover it?
Edit: I have taken the fourier transform of this signal and it is : $$X(ω)=2i(\frac{1}{iω}+πδ(ω))sin(5ω)$$ which can lead to finding the period as $$\frac{2π}{5} $$ and actually see that if f>= 5/π it can be recovered. But this may not be possible because i used the theorem although we are on a finite signal