SlideShare a Scribd company logo
1 of 3
Download to read offline
Assignment # 3 
Fall 2015 
Course title: STRUCTURED COMPUTER PROGRAMMING Course #: EE201 
Sections: All 
Name: Student #: 
Q1) Use MATLAB to do the following: 
i) Create a vector M with exactly 25 values evenly distributed between -3 and 5 
_ 
ii) Add 0.23 to all the odd-indexed elements of the vector M and assign the result to N 
_ 
iii) Create a vector V of only the even numbers between 32 and 75. (i.e.: 32 34 36 … 72 74) 
_ 
iv) Find the total number of elements in vector V 
_ 
v) Find the 7th element of the vector V 
_ M=linspace(-3,5,25) 
M(1:2:end)+0.23 
V=32:2:74 
length(v) 
M(7) 
1324593 khaled mohammed al-awlaqi
EE201 – Lab Assignment 3 Fall 2015 
Page 2 of 3 
Q2) Create a Matrix A with the following numbers: 퐴=[ 1068−37−22−4319−45632] 
_____________________________________________________________________ 
i) Extract out the 3rd row of matrix A as a vector and assign this to a vector m using array addressing 
퐴=[ 1068−37−22−4319−45632] 
_____________________________________________________________________ 
ii) Transpose matrix A and store the result in matrix B 
_____________________________________________________________________ 
iii) Replace the 3rd column of matrix A with 2nd row of matrix B using array addressing 
_____________________________________________________________________ 
iv) Delete the 3rd column of matrix B 
_____________________________________________________________________ 
v) Create a 2×3 matrix D consisting of all elements in the first two rows and the last three columns of matrix A using array addressing 
[ 1068−36−2−3−4319−416−42] 
_____________________________________________________________________ 
vi) Find the maximum values in each column of matrix A 
_____________________________________________________________________ 
>> b=a' b = 10 8 3 9 , 6 -3 1 -4 ,7 2 5 3, 2 -4 6 2 
A(3,:) 3 1 5 6 
A'(3,:) b = 10 8 3 9, 6 -3 1 -4, 7 2 5 3, 2 -4 6 2 
A(:,3)=A(2,:) 
d=b(:,3) 
D=a(1,2,2,4) 
max(a)
EE201 – Lab Assignment 3 Fall 2015 
Page 3 of 3 
vii) Find the minimum values in each row of matrix A 
_____________________________________________________________________ 
viii) Sort each row of matrix A in descending order and store the result in Y 
_____________________________________________________________________ 
ix) Find the sum of the third column of matrix Y 
_____________________________________________________________________ 
Q3) Let a = [3 2 6 8] and b = [4 1 3 5]. Find the following: 
i) x = a × b 
_____________________________________________________________________ 
ii) 푦= √푎+Σ푏푎 
_____________________________________________________________________ 
iii) 푧=0,13⁄,25⁄,37⁄,…푢푝 푡표 715⁄ 
_____________________________________________________________________ 
iv) 푛= −1푖+1sin(2푖) 푖2−1 푤ℎ푒푟푒 푖 푖푠 푎 푣푒푐푡표푟 푓푟표푚 0° 푢푝푡표 90° 
_____________________________________________________________________ >> min(a,[],2 ) ans = 3 -4 2 
y=sort(a) y=3 -4 2 -4 8 -3 3 2 9 15 2 10 6 7 6 
sum a(:,3) 
a.*b 
y=sqrt([3 2 6 8 ])+sum(b.^[3 2 6 8 ]) 
z=[0:7]/15 
n=(-1.^([0:90]+1).*sin(2.*[0:90]))/(([0:90].^2)-1)

More Related Content

What's hot

Section 4 2 math
Section 4 2 mathSection 4 2 math
Section 4 2 mathdears11
 
A study on solving Assignment Problem
A study on solving Assignment ProblemA study on solving Assignment Problem
A study on solving Assignment Problemvivatechijri
 
A1 1 linear fxns notes
A1 1 linear fxns notesA1 1 linear fxns notes
A1 1 linear fxns notesvhiggins1
 
A2. u1. calculo diferencial. unadm
A2. u1. calculo diferencial. unadmA2. u1. calculo diferencial. unadm
A2. u1. calculo diferencial. unadmLuisa Mee 666
 
4.7solvinggraphing
4.7solvinggraphing4.7solvinggraphing
4.7solvinggraphingvhiggins1
 
7th pre alg -l9
7th pre alg -l97th pre alg -l9
7th pre alg -l9jdurst65
 
8th pre alg -l9
8th pre alg -l98th pre alg -l9
8th pre alg -l9jdurst65
 
Final exam 2016 g7
Final exam 2016 g7Final exam 2016 g7
Final exam 2016 g7zeinabze
 
Mathematica model test paper
Mathematica model test paperMathematica model test paper
Mathematica model test paperLuckshay Batra
 
Linear Programming Project
Linear Programming ProjectLinear Programming Project
Linear Programming ProjectChawal Ukesh
 
2period review (1)
2period review (1)2period review (1)
2period review (1)Maria
 
6.4 inverse matrices t
6.4 inverse matrices t6.4 inverse matrices t
6.4 inverse matrices tmath260
 
1.1 and 1.2 slides revised
1.1 and 1.2 slides revised1.1 and 1.2 slides revised
1.1 and 1.2 slides revisedsabon1005
 

What's hot (20)

First semester 1
First semester 1First semester 1
First semester 1
 
Section 4 2 math
Section 4 2 mathSection 4 2 math
Section 4 2 math
 
A study on solving Assignment Problem
A study on solving Assignment ProblemA study on solving Assignment Problem
A study on solving Assignment Problem
 
Core 3 Modulus 1
Core 3 Modulus 1Core 3 Modulus 1
Core 3 Modulus 1
 
Math 116 pres. 5
Math 116 pres. 5Math 116 pres. 5
Math 116 pres. 5
 
ikh323-06
ikh323-06ikh323-06
ikh323-06
 
A1 1 linear fxns notes
A1 1 linear fxns notesA1 1 linear fxns notes
A1 1 linear fxns notes
 
A2. u1. calculo diferencial. unadm
A2. u1. calculo diferencial. unadmA2. u1. calculo diferencial. unadm
A2. u1. calculo diferencial. unadm
 
4.7solvinggraphing
4.7solvinggraphing4.7solvinggraphing
4.7solvinggraphing
 
7th pre alg -l9
7th pre alg -l97th pre alg -l9
7th pre alg -l9
 
8th pre alg -l9
8th pre alg -l98th pre alg -l9
8th pre alg -l9
 
Final exam 2016 g7
Final exam 2016 g7Final exam 2016 g7
Final exam 2016 g7
 
Mathematica model test paper
Mathematica model test paperMathematica model test paper
Mathematica model test paper
 
Linear Programming Project
Linear Programming ProjectLinear Programming Project
Linear Programming Project
 
Assignment 1 b
Assignment 1 b Assignment 1 b
Assignment 1 b
 
PC 10.6 notes Parametric
PC 10.6 notes ParametricPC 10.6 notes Parametric
PC 10.6 notes Parametric
 
2period review (1)
2period review (1)2period review (1)
2period review (1)
 
Assignment 1
Assignment 1Assignment 1
Assignment 1
 
6.4 inverse matrices t
6.4 inverse matrices t6.4 inverse matrices t
6.4 inverse matrices t
 
1.1 and 1.2 slides revised
1.1 and 1.2 slides revised1.1 and 1.2 slides revised
1.1 and 1.2 slides revised
 

Viewers also liked

02 atiqa ijaz khan 01
02 atiqa ijaz khan 0102 atiqa ijaz khan 01
02 atiqa ijaz khan 01Atiqa khan
 
02 atiqa ijaz khan 03
02 atiqa ijaz khan 0302 atiqa ijaz khan 03
02 atiqa ijaz khan 03Atiqa khan
 
02 atiqa ijaz khan 02
02 atiqa ijaz khan 0202 atiqa ijaz khan 02
02 atiqa ijaz khan 02Atiqa khan
 
Applied statistics and probability for engineers solution montgomery && runger
Applied statistics and probability for engineers solution   montgomery && rungerApplied statistics and probability for engineers solution   montgomery && runger
Applied statistics and probability for engineers solution montgomery && rungerAnkit Katiyar
 
"Parla con Noi" - Realizzazione di un format televisivo
"Parla con Noi" - Realizzazione di un format televisivo"Parla con Noi" - Realizzazione di un format televisivo
"Parla con Noi" - Realizzazione di un format televisivoFlavia Zunino
 
SalesUP - Akılcı Yönetim Araçları - Araştırma
SalesUP - Akılcı Yönetim Araçları - AraştırmaSalesUP - Akılcı Yönetim Araçları - Araştırma
SalesUP - Akılcı Yönetim Araçları - AraştırmaMurat Kaplan
 
Μακαρόνια με καλαμαράκια
Μακαρόνια με καλαμαράκιαΜακαρόνια με καλαμαράκια
Μακαρόνια με καλαμαράκιαmariosbekios
 
RX for the Modern Website: How Your Digital Presence Can Drive Demand
RX for the Modern Website: How Your Digital Presence Can Drive DemandRX for the Modern Website: How Your Digital Presence Can Drive Demand
RX for the Modern Website: How Your Digital Presence Can Drive DemandSleek Marketing University
 
Flippa klassrummet, Föreläsning Sundbybergs IKT-inspirationsdag, 28/10-14
Flippa klassrummet, Föreläsning Sundbybergs IKT-inspirationsdag, 28/10-14Flippa klassrummet, Föreläsning Sundbybergs IKT-inspirationsdag, 28/10-14
Flippa klassrummet, Föreläsning Sundbybergs IKT-inspirationsdag, 28/10-14krijon
 
Timeline of the American Colonies and Britain from c.1774 to 1776
Timeline of the American Colonies and Britain from c.1774 to 1776Timeline of the American Colonies and Britain from c.1774 to 1776
Timeline of the American Colonies and Britain from c.1774 to 1776Jonti Cole
 
Prezentaciya vchitelya matematiki_chervonec_inni_oleksandrivni
Prezentaciya vchitelya matematiki_chervonec_inni_oleksandrivniPrezentaciya vchitelya matematiki_chervonec_inni_oleksandrivni
Prezentaciya vchitelya matematiki_chervonec_inni_oleksandrivnisviridovane
 
Puzzle perf im_partie_1
Puzzle perf im_partie_1Puzzle perf im_partie_1
Puzzle perf im_partie_1Karoly Spy
 

Viewers also liked (20)

Assignment1
Assignment1Assignment1
Assignment1
 
02 atiqa ijaz khan 01
02 atiqa ijaz khan 0102 atiqa ijaz khan 01
02 atiqa ijaz khan 01
 
02 atiqa ijaz khan 03
02 atiqa ijaz khan 0302 atiqa ijaz khan 03
02 atiqa ijaz khan 03
 
02 atiqa ijaz khan 02
02 atiqa ijaz khan 0202 atiqa ijaz khan 02
02 atiqa ijaz khan 02
 
Applied statistics and probability for engineers solution montgomery && runger
Applied statistics and probability for engineers solution   montgomery && rungerApplied statistics and probability for engineers solution   montgomery && runger
Applied statistics and probability for engineers solution montgomery && runger
 
Benefits of vitamin C
Benefits of vitamin CBenefits of vitamin C
Benefits of vitamin C
 
Budaya politik
Budaya politik  Budaya politik
Budaya politik
 
"Parla con Noi" - Realizzazione di un format televisivo
"Parla con Noi" - Realizzazione di un format televisivo"Parla con Noi" - Realizzazione di un format televisivo
"Parla con Noi" - Realizzazione di un format televisivo
 
SalesUP - Akılcı Yönetim Araçları - Araştırma
SalesUP - Akılcı Yönetim Araçları - AraştırmaSalesUP - Akılcı Yönetim Araçları - Araştırma
SalesUP - Akılcı Yönetim Araçları - Araştırma
 
Untitled Presentation
Untitled PresentationUntitled Presentation
Untitled Presentation
 
Lamp on stand
Lamp on standLamp on stand
Lamp on stand
 
Μακαρόνια με καλαμαράκια
Μακαρόνια με καλαμαράκιαΜακαρόνια με καλαμαράκια
Μακαρόνια με καλαμαράκια
 
RX for the Modern Website: How Your Digital Presence Can Drive Demand
RX for the Modern Website: How Your Digital Presence Can Drive DemandRX for the Modern Website: How Your Digital Presence Can Drive Demand
RX for the Modern Website: How Your Digital Presence Can Drive Demand
 
Flippa klassrummet, Föreläsning Sundbybergs IKT-inspirationsdag, 28/10-14
Flippa klassrummet, Föreläsning Sundbybergs IKT-inspirationsdag, 28/10-14Flippa klassrummet, Föreläsning Sundbybergs IKT-inspirationsdag, 28/10-14
Flippa klassrummet, Föreläsning Sundbybergs IKT-inspirationsdag, 28/10-14
 
Timeline of the American Colonies and Britain from c.1774 to 1776
Timeline of the American Colonies and Britain from c.1774 to 1776Timeline of the American Colonies and Britain from c.1774 to 1776
Timeline of the American Colonies and Britain from c.1774 to 1776
 
Mohamed gamal. cv
Mohamed gamal. cvMohamed gamal. cv
Mohamed gamal. cv
 
Prezentaciya vchitelya matematiki_chervonec_inni_oleksandrivni
Prezentaciya vchitelya matematiki_chervonec_inni_oleksandrivniPrezentaciya vchitelya matematiki_chervonec_inni_oleksandrivni
Prezentaciya vchitelya matematiki_chervonec_inni_oleksandrivni
 
Perangkat keras komputer
Perangkat keras komputerPerangkat keras komputer
Perangkat keras komputer
 
Puzzle perf im_partie_1
Puzzle perf im_partie_1Puzzle perf im_partie_1
Puzzle perf im_partie_1
 
Contents page
Contents pageContents page
Contents page
 

Similar to EE201_Assignment3

Introduction to matlab lecture 2 of 4
Introduction to matlab lecture 2 of 4Introduction to matlab lecture 2 of 4
Introduction to matlab lecture 2 of 4Randa Elanwar
 
Matlab Overviiew 2
Matlab Overviiew 2Matlab Overviiew 2
Matlab Overviiew 2Nazim Naeem
 
11-Plus-Maths.pdf
11-Plus-Maths.pdf11-Plus-Maths.pdf
11-Plus-Maths.pdfbfan2014
 
Introduction to Data Science With R Lab Record
Introduction to Data Science With R Lab RecordIntroduction to Data Science With R Lab Record
Introduction to Data Science With R Lab RecordLakshmi Sarvani Videla
 
[NEW] Mathematics Form 1-Chapter 2 Factors and Multiples -Prime Number, Facto...
[NEW] Mathematics Form 1-Chapter 2 Factors and Multiples -Prime Number, Facto...[NEW] Mathematics Form 1-Chapter 2 Factors and Multiples -Prime Number, Facto...
[NEW] Mathematics Form 1-Chapter 2 Factors and Multiples -Prime Number, Facto...KelvinSmart2
 
End of module 3 review
End of module 3 reviewEnd of module 3 review
End of module 3 reviewmlabuski
 
Solving ONE’S interval linear assignment problem
Solving ONE’S interval linear assignment problemSolving ONE’S interval linear assignment problem
Solving ONE’S interval linear assignment problemIJERA Editor
 
Mat 045 test 4 review
Mat 045 test 4 reviewMat 045 test 4 review
Mat 045 test 4 reviewMae Guerra
 
1 Week 2 Homework for MTH 125 Name_______________
1 Week 2 Homework for MTH 125  Name_______________1 Week 2 Homework for MTH 125  Name_______________
1 Week 2 Homework for MTH 125 Name_______________MartineMccracken314
 
1 Week 2 Homework for MTH 125 Name_______________
1 Week 2 Homework for MTH 125  Name_______________1 Week 2 Homework for MTH 125  Name_______________
1 Week 2 Homework for MTH 125 Name_______________AbbyWhyte974
 
End of module 3 review
End of module 3 reviewEnd of module 3 review
End of module 3 reviewmlabuski
 
Maths: Number System Worksheet (CBSE Grade II)
Maths: Number System Worksheet (CBSE Grade II)Maths: Number System Worksheet (CBSE Grade II)
Maths: Number System Worksheet (CBSE Grade II)theeducationdesk
 
Basic MATLAB-Presentation.pptx
Basic MATLAB-Presentation.pptxBasic MATLAB-Presentation.pptx
Basic MATLAB-Presentation.pptxPremanandS3
 
Matrix and it's application
Matrix and it's application Matrix and it's application
Matrix and it's application MOHAMMAD AKASH
 

Similar to EE201_Assignment3 (20)

Introduction to matlab lecture 2 of 4
Introduction to matlab lecture 2 of 4Introduction to matlab lecture 2 of 4
Introduction to matlab lecture 2 of 4
 
Fall Semester Review Part B
Fall  Semester  Review  Part  BFall  Semester  Review  Part  B
Fall Semester Review Part B
 
Matlab Overviiew 2
Matlab Overviiew 2Matlab Overviiew 2
Matlab Overviiew 2
 
11-Plus-Maths.pdf
11-Plus-Maths.pdf11-Plus-Maths.pdf
11-Plus-Maths.pdf
 
Introduction to Data Science With R Lab Record
Introduction to Data Science With R Lab RecordIntroduction to Data Science With R Lab Record
Introduction to Data Science With R Lab Record
 
[NEW] Mathematics Form 1-Chapter 2 Factors and Multiples -Prime Number, Facto...
[NEW] Mathematics Form 1-Chapter 2 Factors and Multiples -Prime Number, Facto...[NEW] Mathematics Form 1-Chapter 2 Factors and Multiples -Prime Number, Facto...
[NEW] Mathematics Form 1-Chapter 2 Factors and Multiples -Prime Number, Facto...
 
0013 chapter vi
0013 chapter vi0013 chapter vi
0013 chapter vi
 
End of module 3 review
End of module 3 reviewEnd of module 3 review
End of module 3 review
 
Solving ONE’S interval linear assignment problem
Solving ONE’S interval linear assignment problemSolving ONE’S interval linear assignment problem
Solving ONE’S interval linear assignment problem
 
apostia
apostia apostia
apostia
 
Mat 045 test 4 review
Mat 045 test 4 reviewMat 045 test 4 review
Mat 045 test 4 review
 
1 Week 2 Homework for MTH 125 Name_______________
1 Week 2 Homework for MTH 125  Name_______________1 Week 2 Homework for MTH 125  Name_______________
1 Week 2 Homework for MTH 125 Name_______________
 
1 Week 2 Homework for MTH 125 Name_______________
1 Week 2 Homework for MTH 125  Name_______________1 Week 2 Homework for MTH 125  Name_______________
1 Week 2 Homework for MTH 125 Name_______________
 
End of module 3 review
End of module 3 reviewEnd of module 3 review
End of module 3 review
 
Lesson 18-20.pptx
Lesson 18-20.pptxLesson 18-20.pptx
Lesson 18-20.pptx
 
MATLAB - Arrays and Matrices
MATLAB - Arrays and MatricesMATLAB - Arrays and Matrices
MATLAB - Arrays and Matrices
 
Maths: Number System Worksheet (CBSE Grade II)
Maths: Number System Worksheet (CBSE Grade II)Maths: Number System Worksheet (CBSE Grade II)
Maths: Number System Worksheet (CBSE Grade II)
 
Basic MATLAB-Presentation.pptx
Basic MATLAB-Presentation.pptxBasic MATLAB-Presentation.pptx
Basic MATLAB-Presentation.pptx
 
Array sheet
Array sheet Array sheet
Array sheet
 
Matrix and it's application
Matrix and it's application Matrix and it's application
Matrix and it's application
 

Recently uploaded

Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 

Recently uploaded (20)

Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 

EE201_Assignment3

  • 1. Assignment # 3 Fall 2015 Course title: STRUCTURED COMPUTER PROGRAMMING Course #: EE201 Sections: All Name: Student #: Q1) Use MATLAB to do the following: i) Create a vector M with exactly 25 values evenly distributed between -3 and 5 _ ii) Add 0.23 to all the odd-indexed elements of the vector M and assign the result to N _ iii) Create a vector V of only the even numbers between 32 and 75. (i.e.: 32 34 36 … 72 74) _ iv) Find the total number of elements in vector V _ v) Find the 7th element of the vector V _ M=linspace(-3,5,25) M(1:2:end)+0.23 V=32:2:74 length(v) M(7) 1324593 khaled mohammed al-awlaqi
  • 2. EE201 – Lab Assignment 3 Fall 2015 Page 2 of 3 Q2) Create a Matrix A with the following numbers: 퐴=[ 1068−37−22−4319−45632] _____________________________________________________________________ i) Extract out the 3rd row of matrix A as a vector and assign this to a vector m using array addressing 퐴=[ 1068−37−22−4319−45632] _____________________________________________________________________ ii) Transpose matrix A and store the result in matrix B _____________________________________________________________________ iii) Replace the 3rd column of matrix A with 2nd row of matrix B using array addressing _____________________________________________________________________ iv) Delete the 3rd column of matrix B _____________________________________________________________________ v) Create a 2×3 matrix D consisting of all elements in the first two rows and the last three columns of matrix A using array addressing [ 1068−36−2−3−4319−416−42] _____________________________________________________________________ vi) Find the maximum values in each column of matrix A _____________________________________________________________________ >> b=a' b = 10 8 3 9 , 6 -3 1 -4 ,7 2 5 3, 2 -4 6 2 A(3,:) 3 1 5 6 A'(3,:) b = 10 8 3 9, 6 -3 1 -4, 7 2 5 3, 2 -4 6 2 A(:,3)=A(2,:) d=b(:,3) D=a(1,2,2,4) max(a)
  • 3. EE201 – Lab Assignment 3 Fall 2015 Page 3 of 3 vii) Find the minimum values in each row of matrix A _____________________________________________________________________ viii) Sort each row of matrix A in descending order and store the result in Y _____________________________________________________________________ ix) Find the sum of the third column of matrix Y _____________________________________________________________________ Q3) Let a = [3 2 6 8] and b = [4 1 3 5]. Find the following: i) x = a × b _____________________________________________________________________ ii) 푦= √푎+Σ푏푎 _____________________________________________________________________ iii) 푧=0,13⁄,25⁄,37⁄,…푢푝 푡표 715⁄ _____________________________________________________________________ iv) 푛= −1푖+1sin(2푖) 푖2−1 푤ℎ푒푟푒 푖 푖푠 푎 푣푒푐푡표푟 푓푟표푚 0° 푢푝푡표 90° _____________________________________________________________________ >> min(a,[],2 ) ans = 3 -4 2 y=sort(a) y=3 -4 2 -4 8 -3 3 2 9 15 2 10 6 7 6 sum a(:,3) a.*b y=sqrt([3 2 6 8 ])+sum(b.^[3 2 6 8 ]) z=[0:7]/15 n=(-1.^([0:90]+1).*sin(2.*[0:90]))/(([0:90].^2)-1)