SlideShare uma empresa Scribd logo
1 de 3
In this directory, we can find the eleven files. The relationship between file
name and the number of program written in the book is shown in as follows.

Program7-1        dcamain.m
Program7-2        basest.m
Program7-3        wrap.m
Program7-4        cellmesh.m
Program7-5        holdtime.m
Program7-6        shadow.m
Program7-7        dist.m
Program7-8        main.m
Program7-9        set_D.m
Program7-10       stationInit.m
Program7-11       antgain.m

If you would like to try to use the above programs by using MATLAB.
First of all, please copy all of files to your created adequate directory.
Then, you start to run MATLAB and you can see the following command prompt in
the command window.

>>

Next, you can go to the directory that have all of programs in this section by
using change directory (cd) commmand. If you copy all of files to
/matlabR12/work/chapter7, you only type the following command.

>>cd /matlabR12/work/chapter7

As for chapter7, we have two main functions: dcamain.m and main.m.

7.1 Simulation and evaluation procedure for dcmain.m

For the simulation dcmain.m, you just type the following command.

>>dcamain

Then, you can find the following progress report on your command window.
In this case, we set the variable "timeend" in dcamain.m to 100.

1    0        1       0     0.000000e+000
1    10       2       0     0.000000e+000
1    20       1       0     0.000000e+000
1    30       4       1     1.250000e-001
1    40       0       0     1.250000e-001
1    50       0       0     1.250000e-001
1    60       1       0     1.111111e-001
1    70       3       0     8.333333e-002
1    80       1       0     7.692308e-002
1    90       1       0     7.142857e-002
2    0        3       0     0.000000e+000
2    10       4       0     0.000000e+000
2    20       0       0     0.000000e+000
2    30       5       1     8.333333e-002

In each line of progress report,
the first ... the order of parameter
the second ... time in the simulation (less than "timeend" and the resolution is
defined by "timestep" )
the third ... the number of calls generated in the period of "timestep".
the fourth ... the number of blocked call occurring in the period of "timestep".
the fifth ... the accumulated call blocking probability.

After finished the simulation, we can check all of simulated results.
(1) To see time transition of the accumulated blocking probability and the
forced termination probability

The time-transitions of the accumulated call blocking probability and the
accumulated forced termination probability during simulation period with the
time resolution of "timestep" are stored in the matrices, "check" and "check2"
respectively, changing the number of users per cell as a parameter. When we want
to see the time-transition of the accumulated call blocking probability as to
second parameter (the number of users), we have just to type the following
command.

>> plot(check(2, :))

(2) To see the results of the blocking probability and the forced termination
probability

After finishing simulation, the number of generation calls, the number of call
blocking, the call blocking probability, and the forced termination probability
will be stored in the matrix "output". Especially,
output(1,:)...the number of generated calls
output(2,:)...the number of blocked calls
output(3,:)...the call blocking probability
output(4,:)...the forced termination probability.
On the other hand, the number of users is given in the vector "usernum" (a
vector that gives parameters). When you would like to the relationship between
the number of users and the call blocking probability on the semilog graph, you
just type the following command.

>> semilogy(usernum, output(3, :))

If you would like to see the relationship between the number of generated calls
and the forced termination probability, you just type the following command.

>> semilogy(output(1, :), output(4, :))

(3) Save the results of blocking probability and forced termination probability

All of the simulation results for the call blocking probability and the forced
termination probability are stored to the file "data.txt" in the same directory
that stored the simulation programs.


7.2 Simulation and evaluation procedure for main.m

To simulate main.m, the following procedure must be needed.
(1) Set parameters
First of all, we set simulation parameters in "main.m".

(a) Characteristics of antenna gain decision for BS

(a-1) [horizontal]: beam width at BS for the target direction [degree]
w_HBS = 60;

(a-2) [horizontal]: antenna gain at BS for the opposite direction [dB]
backg_BS = -100;

(a-3) [vertical]: beam width at BS [degree]
w_VBS = 360;

(b) Characteristics of antenna gain decision for MS
(b-1) [horizontal]: beam width at MS for the target direction [degree]
w_HMS = 360;

(b-2) [horizontal]: antenna gain at MS for the opposite direction [dB]
backg_MS = -100;

(b-3) % [vertical]:beam width at MS [degree]
w_VMS = 360;

(2) Just type the following command

>> clear
>> main

(3) You can find a value that mentions the benefit provided by beamforming as

>> ans=

(4) When you change the valiable "w_HBS" from 30 to 80, you can find the same
value as shown in Fig. 7.20. To obtain the graph, you can change some points in
the program "main.m"
(a) Set alpha=3.5 and sigma=0
(b) For the following part in the program "main.m", you must remove the comment
command "%".

%-----Calculation of CIR under various w_HBS
%   ii = 1;
%   for w_HBS2=30:10:180,
%     g_HBS2 = antgain(w_HBS2, backg_BS);
%     CIdB_a2= Ptm_0(1:19)+g_HBS2(degHBS(1:19)+1) + g_VBS(degVBS(1:19)+1) +
g_HMS(degHMS(1:19)+1) + g_VMS(degVMS(1:19)+1)- Loss(2,1:19)-g(1:19);   %
Received level at central BS (beam)
%     CIw_a2 = 10 .^ ( CIdB_a2 ./ 10 ); % dB

Mais conteúdo relacionado

Mais procurados

Include stdio. wps office (1)
Include  stdio. wps office (1)Include  stdio. wps office (1)
Include stdio. wps office (1)
NilayChavhan
 
6.1 & 6.4 an overview of the area problem area
6.1 & 6.4 an overview of the area problem area6.1 & 6.4 an overview of the area problem area
6.1 & 6.4 an overview of the area problem area
dicosmo178
 
Bresenham's line algo.
Bresenham's line algo.Bresenham's line algo.
Bresenham's line algo.
Mohd Arif
 

Mais procurados (18)

Include stdio. wps office (1)
Include  stdio. wps office (1)Include  stdio. wps office (1)
Include stdio. wps office (1)
 
CS201- Introduction to Programming- Lecture 43
CS201- Introduction to Programming- Lecture 43CS201- Introduction to Programming- Lecture 43
CS201- Introduction to Programming- Lecture 43
 
C++ TUTORIAL 5
C++ TUTORIAL 5C++ TUTORIAL 5
C++ TUTORIAL 5
 
Day 4a iteration and functions.pptx
Day 4a   iteration and functions.pptxDay 4a   iteration and functions.pptx
Day 4a iteration and functions.pptx
 
McGregor Grouping and Ungrouping Lesson
McGregor Grouping and Ungrouping LessonMcGregor Grouping and Ungrouping Lesson
McGregor Grouping and Ungrouping Lesson
 
Divided difference Matlab code
Divided difference Matlab codeDivided difference Matlab code
Divided difference Matlab code
 
Day 4b iteration and functions for-loops.pptx
Day 4b   iteration and functions  for-loops.pptxDay 4b   iteration and functions  for-loops.pptx
Day 4b iteration and functions for-loops.pptx
 
Lab lecture 2 bresenham
Lab lecture 2 bresenhamLab lecture 2 bresenham
Lab lecture 2 bresenham
 
ゲーム理論NEXT 線形計画問題第3回 -関連定理の証明-
ゲーム理論NEXT 線形計画問題第3回 -関連定理の証明-ゲーム理論NEXT 線形計画問題第3回 -関連定理の証明-
ゲーム理論NEXT 線形計画問題第3回 -関連定理の証明-
 
Extending Operators in Perl with Operator::Util
Extending Operators in Perl with Operator::UtilExtending Operators in Perl with Operator::Util
Extending Operators in Perl with Operator::Util
 
6.1 & 6.4 an overview of the area problem area
6.1 & 6.4 an overview of the area problem area6.1 & 6.4 an overview of the area problem area
6.1 & 6.4 an overview of the area problem area
 
Bresenham's line drawing algorithm
Bresenham's line drawing algorithmBresenham's line drawing algorithm
Bresenham's line drawing algorithm
 
Quantum challenge 2021 exercise1
Quantum challenge 2021 exercise1Quantum challenge 2021 exercise1
Quantum challenge 2021 exercise1
 
MLE Example
MLE ExampleMLE Example
MLE Example
 
Bresenham's line algo.
Bresenham's line algo.Bresenham's line algo.
Bresenham's line algo.
 
Quantum challenge2021 Ex1
Quantum challenge2021 Ex1Quantum challenge2021 Ex1
Quantum challenge2021 Ex1
 
6. Vectors – Data Frames
6. Vectors – Data Frames6. Vectors – Data Frames
6. Vectors – Data Frames
 
Identidades
IdentidadesIdentidades
Identidades
 

Destaque (14)

Learning brief
Learning briefLearning brief
Learning brief
 
Hukum Ditaati Orang
Hukum Ditaati OrangHukum Ditaati Orang
Hukum Ditaati Orang
 
Pt samsung-electronics-indonesia
Pt samsung-electronics-indonesiaPt samsung-electronics-indonesia
Pt samsung-electronics-indonesia
 
Anh van
Anh vanAnh van
Anh van
 
Kriminologi
KriminologiKriminologi
Kriminologi
 
Paradigma Pancasila
Paradigma PancasilaParadigma Pancasila
Paradigma Pancasila
 
Sybase sup hybrid_web_container_article_wp
Sybase sup hybrid_web_container_article_wpSybase sup hybrid_web_container_article_wp
Sybase sup hybrid_web_container_article_wp
 
Pengantar Ilmu Hukum
Pengantar Ilmu HukumPengantar Ilmu Hukum
Pengantar Ilmu Hukum
 
Crm第六组
Crm第六组Crm第六组
Crm第六组
 
cara menginstal games
cara menginstal gamescara menginstal games
cara menginstal games
 
Shabaan assessment of_young_learners
Shabaan assessment of_young_learnersShabaan assessment of_young_learners
Shabaan assessment of_young_learners
 
Cara menginstal windows xp
Cara menginstal windows xpCara menginstal windows xp
Cara menginstal windows xp
 
Oral language
Oral languageOral language
Oral language
 
Comment bien rédiger le Cahier des charges de votre site web
Comment bien rédiger le Cahier des charges de votre site webComment bien rédiger le Cahier des charges de votre site web
Comment bien rédiger le Cahier des charges de votre site web
 

Semelhante a Bb2

NETWORKS AND FUZZY LOGICASSIGNMENT 1QUESTION ONE [ Perceptro.docx
NETWORKS AND FUZZY LOGICASSIGNMENT 1QUESTION ONE [ Perceptro.docxNETWORKS AND FUZZY LOGICASSIGNMENT 1QUESTION ONE [ Perceptro.docx
NETWORKS AND FUZZY LOGICASSIGNMENT 1QUESTION ONE [ Perceptro.docx
taitcandie
 
Classification of voltage disturbance using machine learning
Classification of voltage disturbance using machine learning Classification of voltage disturbance using machine learning
Classification of voltage disturbance using machine learning
Mohan Kashyap
 

Semelhante a Bb2 (20)

B61301007 matlab documentation
B61301007 matlab documentationB61301007 matlab documentation
B61301007 matlab documentation
 
NETWORKS AND FUZZY LOGICASSIGNMENT 1QUESTION ONE [ Perceptro.docx
NETWORKS AND FUZZY LOGICASSIGNMENT 1QUESTION ONE [ Perceptro.docxNETWORKS AND FUZZY LOGICASSIGNMENT 1QUESTION ONE [ Perceptro.docx
NETWORKS AND FUZZY LOGICASSIGNMENT 1QUESTION ONE [ Perceptro.docx
 
Mechanical Engineering Assignment Help
Mechanical Engineering Assignment HelpMechanical Engineering Assignment Help
Mechanical Engineering Assignment Help
 
R Programming Homework Help
R Programming Homework HelpR Programming Homework Help
R Programming Homework Help
 
ScalaMeter 2012
ScalaMeter 2012ScalaMeter 2012
ScalaMeter 2012
 
ScalaMeter 2014
ScalaMeter 2014ScalaMeter 2014
ScalaMeter 2014
 
Ch3
Ch3Ch3
Ch3
 
Classification of voltage disturbance using machine learning
Classification of voltage disturbance using machine learning Classification of voltage disturbance using machine learning
Classification of voltage disturbance using machine learning
 
Computer Science Programming Assignment Help
Computer Science Programming Assignment HelpComputer Science Programming Assignment Help
Computer Science Programming Assignment Help
 
project_2
project_2project_2
project_2
 
alexnet.pdf
alexnet.pdfalexnet.pdf
alexnet.pdf
 
Using matlab simulink
Using matlab simulinkUsing matlab simulink
Using matlab simulink
 
Using matlab simulink
Using matlab simulinkUsing matlab simulink
Using matlab simulink
 
Bode
BodeBode
Bode
 
1.1Introduction to matlab.pptx
1.1Introduction to matlab.pptx1.1Introduction to matlab.pptx
1.1Introduction to matlab.pptx
 
Bis 311 final examination answers
Bis 311 final examination answersBis 311 final examination answers
Bis 311 final examination answers
 
TALLER PARCIAL II CÁLCULO 3246 (CASTRO,SALAZAR,SHIGUANGO)
TALLER PARCIAL II CÁLCULO 3246 (CASTRO,SALAZAR,SHIGUANGO)TALLER PARCIAL II CÁLCULO 3246 (CASTRO,SALAZAR,SHIGUANGO)
TALLER PARCIAL II CÁLCULO 3246 (CASTRO,SALAZAR,SHIGUANGO)
 
Write a Matlab code (a computerized program) for calculating plane st.docx
 Write a Matlab code (a computerized program) for calculating plane st.docx Write a Matlab code (a computerized program) for calculating plane st.docx
Write a Matlab code (a computerized program) for calculating plane st.docx
 
ADVANCED WORKSHOP IN MATLAB
ADVANCED WORKSHOP IN MATLABADVANCED WORKSHOP IN MATLAB
ADVANCED WORKSHOP IN MATLAB
 
Learn Matlab
Learn MatlabLearn Matlab
Learn Matlab
 

Último

Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
ssuserdda66b
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Último (20)

Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 

Bb2

  • 1. In this directory, we can find the eleven files. The relationship between file name and the number of program written in the book is shown in as follows. Program7-1 dcamain.m Program7-2 basest.m Program7-3 wrap.m Program7-4 cellmesh.m Program7-5 holdtime.m Program7-6 shadow.m Program7-7 dist.m Program7-8 main.m Program7-9 set_D.m Program7-10 stationInit.m Program7-11 antgain.m If you would like to try to use the above programs by using MATLAB. First of all, please copy all of files to your created adequate directory. Then, you start to run MATLAB and you can see the following command prompt in the command window. >> Next, you can go to the directory that have all of programs in this section by using change directory (cd) commmand. If you copy all of files to /matlabR12/work/chapter7, you only type the following command. >>cd /matlabR12/work/chapter7 As for chapter7, we have two main functions: dcamain.m and main.m. 7.1 Simulation and evaluation procedure for dcmain.m For the simulation dcmain.m, you just type the following command. >>dcamain Then, you can find the following progress report on your command window. In this case, we set the variable "timeend" in dcamain.m to 100. 1 0 1 0 0.000000e+000 1 10 2 0 0.000000e+000 1 20 1 0 0.000000e+000 1 30 4 1 1.250000e-001 1 40 0 0 1.250000e-001 1 50 0 0 1.250000e-001 1 60 1 0 1.111111e-001 1 70 3 0 8.333333e-002 1 80 1 0 7.692308e-002 1 90 1 0 7.142857e-002 2 0 3 0 0.000000e+000 2 10 4 0 0.000000e+000 2 20 0 0 0.000000e+000 2 30 5 1 8.333333e-002 In each line of progress report, the first ... the order of parameter the second ... time in the simulation (less than "timeend" and the resolution is defined by "timestep" ) the third ... the number of calls generated in the period of "timestep". the fourth ... the number of blocked call occurring in the period of "timestep". the fifth ... the accumulated call blocking probability. After finished the simulation, we can check all of simulated results.
  • 2. (1) To see time transition of the accumulated blocking probability and the forced termination probability The time-transitions of the accumulated call blocking probability and the accumulated forced termination probability during simulation period with the time resolution of "timestep" are stored in the matrices, "check" and "check2" respectively, changing the number of users per cell as a parameter. When we want to see the time-transition of the accumulated call blocking probability as to second parameter (the number of users), we have just to type the following command. >> plot(check(2, :)) (2) To see the results of the blocking probability and the forced termination probability After finishing simulation, the number of generation calls, the number of call blocking, the call blocking probability, and the forced termination probability will be stored in the matrix "output". Especially, output(1,:)...the number of generated calls output(2,:)...the number of blocked calls output(3,:)...the call blocking probability output(4,:)...the forced termination probability. On the other hand, the number of users is given in the vector "usernum" (a vector that gives parameters). When you would like to the relationship between the number of users and the call blocking probability on the semilog graph, you just type the following command. >> semilogy(usernum, output(3, :)) If you would like to see the relationship between the number of generated calls and the forced termination probability, you just type the following command. >> semilogy(output(1, :), output(4, :)) (3) Save the results of blocking probability and forced termination probability All of the simulation results for the call blocking probability and the forced termination probability are stored to the file "data.txt" in the same directory that stored the simulation programs. 7.2 Simulation and evaluation procedure for main.m To simulate main.m, the following procedure must be needed. (1) Set parameters First of all, we set simulation parameters in "main.m". (a) Characteristics of antenna gain decision for BS (a-1) [horizontal]: beam width at BS for the target direction [degree] w_HBS = 60; (a-2) [horizontal]: antenna gain at BS for the opposite direction [dB] backg_BS = -100; (a-3) [vertical]: beam width at BS [degree] w_VBS = 360; (b) Characteristics of antenna gain decision for MS (b-1) [horizontal]: beam width at MS for the target direction [degree] w_HMS = 360; (b-2) [horizontal]: antenna gain at MS for the opposite direction [dB]
  • 3. backg_MS = -100; (b-3) % [vertical]:beam width at MS [degree] w_VMS = 360; (2) Just type the following command >> clear >> main (3) You can find a value that mentions the benefit provided by beamforming as >> ans= (4) When you change the valiable "w_HBS" from 30 to 80, you can find the same value as shown in Fig. 7.20. To obtain the graph, you can change some points in the program "main.m" (a) Set alpha=3.5 and sigma=0 (b) For the following part in the program "main.m", you must remove the comment command "%". %-----Calculation of CIR under various w_HBS % ii = 1; % for w_HBS2=30:10:180, % g_HBS2 = antgain(w_HBS2, backg_BS); % CIdB_a2= Ptm_0(1:19)+g_HBS2(degHBS(1:19)+1) + g_VBS(degVBS(1:19)+1) + g_HMS(degHMS(1:19)+1) + g_VMS(degVMS(1:19)+1)- Loss(2,1:19)-g(1:19); % Received level at central BS (beam) % CIw_a2 = 10 .^ ( CIdB_a2 ./ 10 ); % dB