5- Which command in MATLAB performs matrix operation on elements? a) a' b) a_4 c) a^3 d) a.*b 6- What would be the output of the following code (in editor window)? X = [1 2 3;4 5 6;7 8 9];

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 12RQ
icon
Related questions
Question
using matlab. Solve the question quickly
5- Which command in MATLAB performs matrix operation on elements?
a) a'
b) a_4
c) a^3
d) a.*b
6- What would be the output of the following code (in editor window)?
X= [1 2 3;4 5 6;7 8 9];
Y = [9 8 7 6 5 4;3 2 1];
R = rem(X,Y)
R=1 2 1
409
100
R=1 2 3
302
1 0 0
R=1 2 3
402
100
d) None of the mentioned
7- What does the function all() do?
a) Returns 1 if all elements within it are 0
b) Returns 0 if all elements within it are 0
c) Returns 0 if all elements within it are non-zero
d) Returns 1 if all elements within it are non-zero
b)
Transcribed Image Text:5- Which command in MATLAB performs matrix operation on elements? a) a' b) a_4 c) a^3 d) a.*b 6- What would be the output of the following code (in editor window)? X= [1 2 3;4 5 6;7 8 9]; Y = [9 8 7 6 5 4;3 2 1]; R = rem(X,Y) R=1 2 1 409 100 R=1 2 3 302 1 0 0 R=1 2 3 402 100 d) None of the mentioned 7- What does the function all() do? a) Returns 1 if all elements within it are 0 b) Returns 0 if all elements within it are 0 c) Returns 0 if all elements within it are non-zero d) Returns 1 if all elements within it are non-zero b)
Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning