Complete the code to multiply each element of vectors A and B element-wise.
C = A [1] B;In MATLAB, .* performs element-wise multiplication between arrays.
Complete the code to divide each element of vector X by corresponding element of Y element-wise.
Z = X [1] Y;The ./ operator divides elements of arrays element-wise in MATLAB.
Fix the error in the code to raise each element of vector V to the power of 3 element-wise.
W = V [1] 3;
The .^ operator raises each element of an array to a power element-wise.
Fill both blanks to compute element-wise multiplication and then element-wise division of vectors A and B.
result = (A [1] B) [2] B;
First, use .* for element-wise multiplication, then ./ for element-wise division.
Fill all three blanks to compute element-wise power, then multiply element-wise, and finally divide element-wise.
output = ((X [1] 2) [2] Y) [3] Z;
Use .^ for element-wise power, .* for element-wise multiplication, and ./ for element-wise division.