Question: Question 5 1 0 pts What does counter 2 provide at the end of this script? x = [ - 1 0 1 - 3

Question 5
10 pts
What does counter 2 provide at the end of this script?
x=[-101-3037-16]
counter 1=0;
counter 2=0;
for i=1 :length (x)
if x(i)0
counter 1= counter 1+1
elseif x(i)=0
counter 2= counter 2+1
end
end
The number of zeros and the number of negative numbers in vector x
The number of negative and positive numbers in vector x
The number of elements in vector x that are non-zero and non-negative (i.e. positive)
The number of nonzero elements in vector x
 Question 5 10 pts What does counter 2 provide at the

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!