i have to generate gaussian noise with snr increment from 0 to 10dB, with step size of 1dB.
i'm using variance=10^(-snr/10); in noise=sqrt(variance)*randn(size(x));
now i want the snr to be in dB.......any code to convert snr in magnitude to snr in dB.
i found this on mathworks.com "ydb=mag2db" .but this is to convert a single value. In my case i want incrementing snr in dB