Predicting Element-wise Results

In MATLAB, a lab script defines the row vectors a = [6 9 12] and b = [3 2 4]. It then computes the four expressions listed in the table. Enter each element of every result as an exact number.

ExpressionElement 1Element 2Element 3
c = a ./ b
d = a .^ 2
e = 2 .^ b
f = a - b .^ 2

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Mathematical Operations with Arrays Questions: