Note that due to the periodic component in the signal ($A\cos(\omega_1t))$, the integral
doesn't exist, i.e., the energy of the given signal is infinite. The signal is a so-called power signal, having finite power and infinite energy.
What you can do is compute its power using the ...
That model is used to estimate path loss based on distance and frequency (applicable to RF frequencies from 150 to 1500 MHz). Since there are an infinite number of heights that would resolve to the same distance, you cannot use the formula with the transmission from a single BTS to resolve the mobile height.
You could theoretically triangulate this with ...
Is what I am doing correct?
If not, how would I reproduce the SINAD function?
By replicating the exact same algorithm that the Matlab function uses.
Your answer is more correct, but you also "cheated". You have access to the original sine and noise signals. sinad() ONLY has access to the sum of both. Hence it needs to do an estimation using ...