Observation Frequency In Combination 6 Signals

in #science7 years ago (edited)

Hy steemians, in this post i will membangikan tutorial how to generate 6 signal frequency using programming language of Matlab, here is coding and output result of program that I have made, please copy and share if you feel this useful.

Observation Frequency In Combination 6 Signals with Matlab Programming


Sintaks Program

Fs=100;
t=(1:200)/Fs;
f1=1;
s1=(2/pi)sin(2pif1t);
f2=3;
s2=(2/3/pi)sin(2pif2t);
f3=5;
s3=(2/5/pi)sin(2pif3t);
f4=7;
s4=(2/7/pi)sin(2pif4t);
f5=9;
s5=(2/9/pi)sin(2pif5t);
f6=11;
s6=(2/11/pi)sin(2pif6t);
s=s1+s2+s3+s4+s5+s6;
subplot(2,1,1)
plot(t,s)
xlabel('time')
S=fft(s,512);
w=(0:255)/256*(Fs/2);
subplot(2,1,2)
plot(w,abs(S(1:256)))
xlabel('frequency')

Output Program



FOLLOW ME: @ryal


Coin Marketplace

STEEM 0.16
TRX 0.15
JST 0.028
BTC 57658.56
ETH 2273.22
USDT 1.00
SBD 2.46