Question: I need 36 I got the other Section 3 The code for questions 31-36 are related to each other 31. (3 points) Using a while-loop,
Section 3 The code for questions 31-36 are related to each other 31. (3 points) Using a while-loop, complete the MATLAB code to populate the array named prices: clc clear prices = [ ); index 1; newPrice - input('Enter price to read in (-1 to exit): ) 32. (1 point) If you did not know the absolute length of the array prices, what is the MATLAB code that will give you the length of the prices array? 33. (1 point) What is another name for the position in an array? 34. (1 point) How would you reference the third element in the prices array, assuming there are at least 3 elements? 35. (1 point) What is the index range of the prices array? 36. (5 points) Using a for-loop, write the MATLAB code that finds the maximum value in the prices array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
