Question: Which loop is equivalent to the array operation newArray = array 1 . * array 2 ? Group of answer choices for i = 1

Which loop is equivalent to the array operation newArray = array1.* array2?
Group of answer choices
for i =1:length(array1)
newArray(i)= array1(i)*array2(i);
end
for i = length(array1):length(array2)
temp = array1(i)*array2(i);
newArray(i)= temp
end
for i =1:length(array1)
newArray = array1(i)*array2(i);
end
for i =1:length(array1)
for j =1:length(array2)
temp = array1(i)*array2(j);
end
newArray(i)= temp
end

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!