Created
April 29, 2011 13:10
-
-
Save szubster/948265 to your computer and use it in GitHub Desktop.
matlab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
no description?