Skip to content

Instantly share code, notes, and snippets.

@szubster
Created April 29, 2011 13:10
Show Gist options
  • Save szubster/948265 to your computer and use it in GitHub Desktop.
Save szubster/948265 to your computer and use it in GitHub Desktop.
matlab
clear all;
Fs=32768;
x =linspace(0,1,Fs);
y=sin(2*pi*0.133*Fs*x)/2 + sin(2*pi*sqrt(2)/10*Fs*x)/2;
sygnal_widmo(y,'przed');
y2 = y * 10;
y2 = ceil(y2);
y2 = y2 / 10;
sygnal_widmo(y2,'po');
blad = y2 - y;
figure(3);
sygnal_widmo(blad, 'blad');
figure(4);
szum_bialy = szum(length(x));
sygnal_widmo(szum_bialy,'szum bialy');
@shuishangdz
Copy link

no description?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment