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...
icon
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]
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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps

Blurred answer
Knowledge Booster
Logic Gate and Its Application
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.
Similar questions
Recommended textbooks for you
Introductory Circuit Analysis (13th Edition)
Introductory Circuit Analysis (13th Edition)
Electrical Engineering
ISBN:
9780133923605
Author:
Robert L. Boylestad
Publisher:
PEARSON
Delmar's Standard Textbook Of Electricity
Delmar's Standard Textbook Of Electricity
Electrical Engineering
ISBN:
9781337900348
Author:
Stephen L. Herman
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Electrical Engineering
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education
Fundamentals of Electric Circuits
Fundamentals of Electric Circuits
Electrical Engineering
ISBN:
9780078028229
Author:
Charles K Alexander, Matthew Sadiku
Publisher:
McGraw-Hill Education
Electric Circuits. (11th Edition)
Electric Circuits. (11th Edition)
Electrical Engineering
ISBN:
9780134746968
Author:
James W. Nilsson, Susan Riedel
Publisher:
PEARSON
Engineering Electromagnetics
Engineering Electromagnetics
Electrical Engineering
ISBN:
9780078028151
Author:
Hayt, William H. (william Hart), Jr, BUCK, John A.
Publisher:
Mcgraw-hill Education,