Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Can anyone please provide me with the code of "compressive sampling for reconstruction of my randomly sampled signal"

1 vue (au cours des 30 derniers jours)
Kel
Kel le 7 Avr 2014
Clôturé : MATLAB Answer Bot le 20 Août 2021
fo=4 fs=100 ts=1/fs t=0:ts:1-ts n=length(t) y=2*sin(2*pi*fo*t) plot(t,y) numberOfSamplesToTake = 20; a = randperm(numel(y)); sampleIndexes = a(1:numberOfSamplesToTake); % Plot the samples; ts = t(sampleIndexes) ys = y(sampleIndexes) plot(ts, ys, 'r*') YfreqDomain=fft(ys) stem(abs(YfreqDomain))

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by