Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

multiple transmitter and ther Attenuation using matlab

Status
Not open for further replies.

ashokone

Member level 3
Joined
Sep 30, 2009
Messages
56
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Location
banglore
Activity points
1,659
clc;
clear all;
close all;

F=50e9;
C=3e8;
Lambda=C/F;
t=[6 6 6 6 6 6 6 6 6];
TRL=[0.0030 0.0030;
0.0030 0.0060;
0.0030 0.0090;
0.0060 0.0030;
0.0060 0.0060;
0.0060 0.0090;
0.0090 0.0030;
0.0090 0.0060;
0.0090 0.0090];

TRx1=TRL:),1);
TRx2=TRL:),2);
figure,stem3(TRx1,TRx2,t,'^')
hold on
xlabel('distance between transmitter in mm')
ylabel('distance between transmitter in mm')
zlabel('length of transmitter ')
legend('transmitter')

N=9;
d = 1:N;
d0=1;

Pt=1; %Transmited Power


Pr=Pt*(1./(d.^2));


Pr = 10.*log(Pr);
Pt = 10*log(Pt);

x = rayleighchan(1/10000,100);
sig = randn(1,N); % Signal
y = filter(x,sig);
attindb=Pr-Pt+10*3*log10(d./d0)+y;
attindb=real(attindb);

plot3(TRx1*1e3,TRx2*1e3,t,'p',TRx1(1)*1e3,TRx2(1)*1e3,attindb,'-.r*',TRx1(2)*1e3,TRx2(2)*1e3,attindb,'-.r*',....
TRx1(3)*1e3,TRx2(3)*1e3,attindb,'-.r*',TRx1(4)*1e3,TRx2(4)*1e3,attindb,'-.r*',...
TRx1(5)*1e3,TRx2(5)*1e3,attindb,'-.r*',TRx1(6)*1e3,TRx2(6)*1e3,attindb,'-.r*',...
TRx1(7)*1e3,TRx2(7)*1e3,attindb,'-.r*',TRx1(8)*1e3,TRx2(8)*1e3,attindb,'-.r*',...
TRx1(9)*1e3,TRx2(9)*1e3,attindb,'-.r*');
hold off

xlabel('distance between transmitter in m')
ylabel('distance between transmitter in m')
zlabel('attenuation in db')
legend('transmitter','attenuation')

i am facing problem is that attenuation is straight . i don't want that. i have to get a curve with respect to distance in three dimension.. plz help

how to get the attenuation curve in this three dimension
plz help
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top