The transmitted signal Xt = Ac*cos(2*π*fc*t+φ),

I know mathematical expression of complex envelope and its derivation,

but how to find its complex envelope in MATLAB?

Assume that Ac = 3,carrier frequency fc = 1GHz,phase φ = 30 degrees.

Could somebody show me the MATLAB code that generates the complex envelope of signal Xt?