how do i use Compressive sensing to recover my signal?

4 ビュー (過去 30 日間)
Kel
Kel 2014 年 3 月 27 日
編集済み: Walter Roberson 2016 年 5 月 10 日
i have code below and i need to use compressive sensing to recover the signal from the random samples i have taken. can anyone help?
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))

回答 (2 件)

Star Strider
Star Strider 2014 年 3 月 27 日
This Matlab Compressive Sensing Tutorial seems to have a number of resources.

Tinkul
Tinkul 2014 年 3 月 27 日
You can use l1-magic...

カテゴリ

Help Center および File ExchangeDigital Filtering についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by