Question: The arrays price _ ( A ) , price _ ( B ) , and price _ ( C ) given below contain the price
The arrays priceA priceB and priceC given below contain the price in dollars of three stocks over 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.
priceA
priceB
priceC
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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
