If you want the power spectrum as simple uints of power as a function of frequency, use the fft function. To convert amplitude to power, square the signal either before or after doing the fft on it. To convert the power values to decibels:
pwr = amplitude.^2;
dBpwr = 10*log10(pwr);
.