Bro, i figured out what should i do adi...
Actually my work quite easy only, let say if i assigned bit 0 as 1000hz and 1 assigned as 1400hz, if detect 1, output sine wave of 1000hz, else if detect 0, output sinewave of 1400hz, and then just add this two wave then the FSK is done...but i'm totally noob on MATLAB code...
i found this code over internet..
%FSK Modulation
bit = round(rand(1,10)); % bit stream of random 1's and 0's
bitperiod = 0.01; %bit period
fs = 15000; %sampling frequency
fc = [3000 5000]; % carrier frequency
% create the FSK signal
L=length(0
bitperiod/1500):bitperiod);
transmitted = zeros(1,L);
for k = 1:length(bit)
f = fc(bit(k) + 1);
transmitted((k-1)*L+1: k*L) = cos(2*pi*f*(0
bitperiod/1500):bitperiod));
%transmitted()=transmitted()+2*randn(size(0.01));
%stem(transmitted);%fsk verified
%y = filter(b,a,transmitted);
end
plot(transmitted);
what means by let say Wave=X(a:b:c)? what the parameter inside meant?