Question: The arrays price _ ( A ) , price _ ( B ) , and price _ ( C ) given below contain the price

The arrays price_(A), price_(B), and price_(C) 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.
price_(A)=[19,18,22,21,25,19,17,21,27,29]
price_(B)=[22,17,20,19,24,18,16,25,28,27]
price_(C)=[17,13,22,23,19,17,20,21,24,28]
Use the FIND and LENGTH functions in all three parts of the problem. In part (c), I need to make use of the XOR function
The arrays price _ ( A ) , price _ ( B ) , and

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 Programming Questions!