Need help in Matlab code

조회 수: 4 (최근 30일)
Kumar
Kumar 2013년 8월 12일
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
dpb
dpb 2013년 8월 12일
If you want some help, format the code and make it legible -- too compressed to wade through as is, sorry...

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Wireless Communications에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by