Question: Please Help using Matlab.. Problem 1 For the arrays x and y given below, use MATLAB to find all the elements in x that are
Please Help using Matlab..


Problem 1 For the arrays x and y given below, use MATLAB to find all the elements in x that are greater than the corresponding elements in y. x=-3, 0, 0, 2, 6, 8] y =-5,-2, 0, 3, 4, 10] Problem 2 The arrays PriceA and PriceB given below contain the price in dollars of two stocks over 10 days. Use MATLAB to determine how many days the price of stock A was above the price of stock B. PriceA 19, 18, 22, 21, 25, 19, 17, 21, 27, 29] Prices [22, 17, 20, 19, 24, 18, 16, 25, 28, 27) Problem:3 The arrays PriceA, PriceB, and Pricec given below contain the price in dollars of three stocks over 10 days. a. Use MATLAB to determine how many days the price of stock A was above both the price of stock B and the price of stock C. b. Use MATLAB to determine how many days the price of stock A was above either the price of stock B or the price of stock C c. Use MATLAB to determine how many days the price of stock A was above either the price of stock B or the price of stock C, but not both
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
