Please explain the steps to how this code fragment works. I don't really understand count or index. Thanks.
What is count as a result of the given Matlab code fragment? Showing your workmay result in partial credit.numbers = [2 4 3 -5 1 0];count = 0;index = 1;while numbers(index) > 0count = count + 1;index = index +1;endcount = 3
Best Answer