Q3) Answer only 10 the following questions. 1. What is the output image of the MATLAB function: g im2double(f)? where f the input image as shown below: f= [35 46 63; 180 155 130; 74 86 98] 2. For the two matrices M and N shown below, what is the result of the MATLAB function: M>= N? M = [30 53 28; 39 36 34; 64 75 83], N= [28 29 33;39 45 31;54 75 88] 3. For the vector X (shown below) what is the result of MATLAB function: X(end:-3:1)? X = [13 5 8 11 14 18 21 25 30 35 40 46]
Q3) Answer only 10 the following questions. 1. What is the output image of the MATLAB function: g im2double(f)? where f the input image as shown below: f= [35 46 63; 180 155 130; 74 86 98] 2. For the two matrices M and N shown below, what is the result of the MATLAB function: M>= N? M = [30 53 28; 39 36 34; 64 75 83], N= [28 29 33;39 45 31;54 75 88] 3. For the vector X (shown below) what is the result of MATLAB function: X(end:-3:1)? X = [13 5 8 11 14 18 21 25 30 35 40 46]
Introductory Circuit Analysis (13th Edition)
13th Edition
ISBN:9780133923605
Author:Robert L. Boylestad
Publisher:Robert L. Boylestad
Chapter1: Introduction
Section: Chapter Questions
Problem 1P: Visit your local library (at school or home) and describe the extent to which it provides literature...
Related questions
Question
![Q3) Answer only 10 the following questions.
1. What is the output image of the MATLAB function: g im2double(f)? where f the input image as shown below:
f=[35 46 63; 180 155 130; 74 86 98]
2. For the two matrices M and N shown below, what is the result of the MATLAB function: M>= N?
M = [30 53 28; 39 36 34; 64 75 83], N= [28 29 33;39 45 31;54 75 88]
3. For the vector X (shown below) what is the result of MATLAB function: X(end:-3:1)?
X = [1 3 5 8 11 14 18 21 25 30 35 40 46]
4. For the following matrix, find the result of the MATLAB function: P=Q([3 1], [1 3]) ?
Q = [1 3 5 7; 2 4 8 10; 3 79 12]
5. For the following numeric arrays I and J, find the result of AND operator between them in MATLAB:
I= [1 -3 6; 0 12 -5; 6 0 -7] J= [3 0 8; 0 -5 -8; 6 3 9]
6. For the following numeric arrays I and J, find the result Exclusive OR operator between them in MATLAB:
I= [1 -3 6; 0 12 -5; 6 0 -7] J= [3 0 8; 0 -5 -8; 6 3 9]
7. For the matrix Z (shown below) find results of the two MATLAB functions: S1= sum(Z) and S2= sum(Z(:))
Z= [135 7; 2 4 8 10; 3 79 12]
8. For the following two matrices, find the result of the MAT:LAB function: A= O(P)?
0 = [4 8 10; 12 16 18; 22 25 27], P =logical([0 1 1; 00 1; 1 0 0])
9. For the following matrices X and Y, write their matrix product (Z):
X = [x1 x2; x3 x4] Y = [yl y2; y3 y4]
10. For the following MATLAB function (shown below), what do these four parameters refer to: ones(3), 30, 1.5, global
(give their meaning in no more than two words).
g= localthresh(f, ones(3), 30,1.5, 'global');
11. What is the complete MATLAB function, using the syntax 'meshgrid', to get the following numeric arrays X and Y:
X = [6 7 8;6 7 8;6 7 8] Y = [3 3 3; 4 4 4; 5 5 5]
12. What is the complete MATLAB function, using the syntax 'padarray', to get the numeric arrays g from the input
image f:
f= [1 2; 3 4] g= [1 2 1; 3 4 3; 1 2 1; 3 4 3]](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F42338bdd-822a-48e1-a8cd-4fd186eea7ba%2Fe9af393f-3fb6-4255-861e-499dce23a5f8%2Fysq23sv_processed.jpeg&w=3840&q=75)
Transcribed Image Text:Q3) Answer only 10 the following questions.
1. What is the output image of the MATLAB function: g im2double(f)? where f the input image as shown below:
f=[35 46 63; 180 155 130; 74 86 98]
2. For the two matrices M and N shown below, what is the result of the MATLAB function: M>= N?
M = [30 53 28; 39 36 34; 64 75 83], N= [28 29 33;39 45 31;54 75 88]
3. For the vector X (shown below) what is the result of MATLAB function: X(end:-3:1)?
X = [1 3 5 8 11 14 18 21 25 30 35 40 46]
4. For the following matrix, find the result of the MATLAB function: P=Q([3 1], [1 3]) ?
Q = [1 3 5 7; 2 4 8 10; 3 79 12]
5. For the following numeric arrays I and J, find the result of AND operator between them in MATLAB:
I= [1 -3 6; 0 12 -5; 6 0 -7] J= [3 0 8; 0 -5 -8; 6 3 9]
6. For the following numeric arrays I and J, find the result Exclusive OR operator between them in MATLAB:
I= [1 -3 6; 0 12 -5; 6 0 -7] J= [3 0 8; 0 -5 -8; 6 3 9]
7. For the matrix Z (shown below) find results of the two MATLAB functions: S1= sum(Z) and S2= sum(Z(:))
Z= [135 7; 2 4 8 10; 3 79 12]
8. For the following two matrices, find the result of the MAT:LAB function: A= O(P)?
0 = [4 8 10; 12 16 18; 22 25 27], P =logical([0 1 1; 00 1; 1 0 0])
9. For the following matrices X and Y, write their matrix product (Z):
X = [x1 x2; x3 x4] Y = [yl y2; y3 y4]
10. For the following MATLAB function (shown below), what do these four parameters refer to: ones(3), 30, 1.5, global
(give their meaning in no more than two words).
g= localthresh(f, ones(3), 30,1.5, 'global');
11. What is the complete MATLAB function, using the syntax 'meshgrid', to get the following numeric arrays X and Y:
X = [6 7 8;6 7 8;6 7 8] Y = [3 3 3; 4 4 4; 5 5 5]
12. What is the complete MATLAB function, using the syntax 'padarray', to get the numeric arrays g from the input
image f:
f= [1 2; 3 4] g= [1 2 1; 3 4 3; 1 2 1; 3 4 3]
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, electrical-engineering and related others by exploring similar questions and additional content below.Recommended textbooks for you
![Introductory Circuit Analysis (13th Edition)](https://www.bartleby.com/isbn_cover_images/9780133923605/9780133923605_smallCoverImage.gif)
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:
9780133923605
Author:
Robert L. Boylestad
Publisher:
PEARSON
![Delmar's Standard Textbook Of Electricity](https://www.bartleby.com/isbn_cover_images/9781337900348/9781337900348_smallCoverImage.jpg)
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Electrical Engineering
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education
![Introductory Circuit Analysis (13th Edition)](https://www.bartleby.com/isbn_cover_images/9780133923605/9780133923605_smallCoverImage.gif)
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:
9780133923605
Author:
Robert L. Boylestad
Publisher:
PEARSON
![Delmar's Standard Textbook Of Electricity](https://www.bartleby.com/isbn_cover_images/9781337900348/9781337900348_smallCoverImage.jpg)
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Electrical Engineering
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education
![Fundamentals of Electric Circuits](https://www.bartleby.com/isbn_cover_images/9780078028229/9780078028229_smallCoverImage.gif)
Fundamentals of Electric Circuits
Electrical Engineering
ISBN:
9780078028229
Author:
Charles K Alexander, Matthew Sadiku
Publisher:
McGraw-Hill Education
![Electric Circuits. (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780134746968/9780134746968_smallCoverImage.gif)
Electric Circuits. (11th Edition)
Electrical Engineering
ISBN:
9780134746968
Author:
James W. Nilsson, Susan Riedel
Publisher:
PEARSON
![Engineering Electromagnetics](https://www.bartleby.com/isbn_cover_images/9780078028151/9780078028151_smallCoverImage.gif)
Engineering Electromagnetics
Electrical Engineering
ISBN:
9780078028151
Author:
Hayt, William H. (william Hart), Jr, BUCK, John A.
Publisher:
Mcgraw-hill Education,