RIGOL 3 Programming Demos
3-12 DS2000E Programming Guide
wave = wave';
subplot(211);
plot(wave);
fftSpec = fft(wave',2048);
fftRms = abs( fftSpec');
fftLg = 20*log(fftRms);
subplot(212);
plot(fftLg);
3. Save the M file under the current directory. In this demo, the M file is named as
DS2000E_Demo_MATLAB.m. Run the M file and the running result is as follows.