Need help in Matlab code
3 views (last 30 days)
Show older comments
Hallo , Can any one help me in matlab code.
Here is my issue..
I have one transmiter and 6 recieving channels placed at a distance of lamda/2, here i transmitted my signal i.e sinusoidal signal with rectangular envelop of frequency fc=40khz and fs=40200hz(since high frequency so alliasing effect, I choosed fs by the condition fs>fc>fs/2).Say X=A*cos(wc*t)
Once Signal is transmitted, The signal is transmitted back due to the point target (i.e i know the coordinates of the target). Now the recieving channels recieve the signal with time delay(td). I know the time delay from coordinate geometry. Now my recieved Signal is Rx=A*cos(wc(t-td))
Now what i need is i need the recieved signal from 6 channels and compare all the 6 recieved signals. In such a way that for example i transmited my signal at t=0 then the recieved signal should start from t=timedealy, And the sampling frequency is same at recieve and transmitter.
Here is my code for the signal transmitted and finding the delays and after that i need help from you to plot the delayed version of signal;
# Item one
clear all;
clc;
%Signal Transmitting from a reference transmitter
fs=40200;%fs>fc>fs/2 for Higher frequencies due to aliasing
t=-0.1:1/fs:0.1; %in seconds
fc=40e3;% in HZ
c=1550;%in mts/sec
lamda=c/fc%in mts
wc=2*pi*fc;
A=1;
n=length(t)
x1=A*rect(t).*exp(j*wc*t);%A*sin(wc*t);
figure(1)
plot(t,x1);
# Item two
1 Comment
dpb
on 12 Aug 2013
If you want some help, format the code and make it legible -- too compressed to wade through as is, sorry...
Answers (0)
See Also
Categories
Find more on Wireless Communications in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!