This is a simple code and example that let you transform your digital signal from time domain to frequency domain only using digital signal and its time step. Although there is a Hilbert function in Matlab, the provided code is more convenient for tyro user.
Mohsen Vazirizade (2020). simpleHilbert (https://www.mathworks.com/matlabcentral/fileexchange/56066-simplehilbert), MATLAB Central File Exchange. Retrieved .