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.

Matlab code for MIMO-OFDM including BER, SNR, reyleigh. etc

Status
Not open for further replies.
Hi. Can anyone send me the matlab simulink model on OFDM please. i shall be very thankful as i need that v urgently.
 

matlab code

hi this is the matlab code for optimal energy in wireless sensor & n/w
Code:
function [Eopt,Tn]=optimal_energy(T,n,C,D,R,s,PR)

%---------------------------------------------------------------
%This algorithm uses binary search for achieve a solution
%to compute the optimal energy for each node when all the  
%nodes have the same energy levels.

%Based on paper: "Energy-Efficient Multi-Hop Packet Transmission
%using Modulation Scaling in Wireless Sensor Networks"

%---------inputs----------------------------------------
%T is the delay constraint in our system
%n is the number of transmitting nodes in the path
%C is a vector(row) that symbolizes the tx power
%D is a vector(row) that symbolizes the electronic power
%s is the packet length in bits
%PR is the precision when searching for the latency constraint
%from T*(1-E) to T*(E+1) --> values of E=from 0.00001 to 0.0001
%--------------------------------------------------------
%------------outputs-------------------------------------
%Eopt is the optimal energy that satisfies the constraints
%Tn is a vector that contains the latency of each node
%--------------------------------------------------------
%conditions for optimality: E(i)=E(i+1) for i=0,1,..,n-1;
%                           sum(Tn)=T;

%---------------------------------
%files asociated to this program:

    %energy_model
    %fixedpoint
    %energy_fixedpoint
%--------------------------------

E=zeros(1,n);  %energy spent of each node
Tn=zeros(1,n); %latency for each node

for i = 1:n,
    Tn(i)=T./n;  
end

%compute the Emin and Emax for t=T/n
for i = 1:n,
    E(i)=energy_model(C(i),D(i),R,s,Tn(i));     
end

Emax=max(E);
Emin=min(E);


%checking if we have already the solution of the problem
j=0;
for i = 1:(n-1),
    if E(i)~=E(i+1)
        j=1;
    end
    
end
%if j=0 we have finished



    
%main body  
%1st-> solve for the new Eopt the latency constraints
%2nd check if is optimal
%3rd if not optimal perform binary search
if j==1
    b=zeros(1,n);
    Tn=zeros(1,n);
    Ts=sum(Tn);
    Eopt=0;
else
    Eopt=E(1);
    %Tn=Tn;
end

while j==1,
   
         Eopt=(Emax+Emin)./2;
         
         for i = 1:n
             E(i)=Eopt;
             b(i)=fixedpoint('energy_fixedpoint',8,1e-6,1000,C(i),D(i),Eopt,s);
         end
         
         
         Tn=s./(b.*R);
         Ts=sum(Tn);
         if (Ts > (T*(PR+1)))   %not optimal
             Emax=Emax;
             Emin=Eopt;
         elseif (Ts < (T*(1-PR)))   %not optimal
             Emax=Eopt;
             Emin=Emin;
         else   %is optimal
             j=0;
         end
            
end

%end of optimal_energy
 
Last edited by a moderator:

Re: mimo ofdm matlab code

I only have a matlab code for OFDM. So, if you still need it, i could send it to you~
 
  • Like
Reactions: nehra

    nehra

    Points: 2
    Helpful Answer Positive Rating
Did anyone get the matlab code for OFDM? and does anyone know about the parameters to be checked for OFDM slot structure?
 

Hi. Can anyone send me the MATLAB simulink model on WiMAX MIMO OFDM please. i shall be very thankful as i need that v urgently.
 

is anybody having channel estimation in mimo ofdm systems matlab code....it is very urgent...please respond asap....
 

Re: mimo ofdm matlab code

block diagram of mimo-ofdm, which is useful to write the matlab code and simulate, check the videos in youtube for iit delhi.

- - - Updated - - -

is this main program? can u provide me the remaining files

%energy_model
%fixedpoint
%energy_fixedpoint
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top