The arrays price_A and price_B given below contain the price in dollars of two stocks over 10
Question:
The arrays price_A and price_B 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.
price_A = [19, 18, 22, 21, 25, 19, 17, 21, 27, 29]
price_B = [22, 17, 20, 19, 24, 18, 16, 25, 28, 27]
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 33% (6 reviews)
You can use the following code in MATLAB to determine how many days the price of stock ...View the full answer
Answered By
Muhammad Yousaf
I am professional Teacher.Working as a online as well as college professor .I teach different subjects in different classes and solved many online Assessments and also solve different Projects..
0.00
0 Reviews
10+ Question Solved
Related Book For
Question Posted:
Students also viewed these Engineering questions
-
The array price given below contains the price in dollars of a certain stock over 10 days. Use MATLAB to determine how many days the price was above $20. price = [19, 18, 22, 21, 25, 19, 17, 21, 27,...
-
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...
-
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]
-
Consider the example in Exhibit 5.5. Can you think of anything else you might do with that example that would be helpful to the ultimate decisionmaker? exhibit 5.5 Decision Tree Analysis Using Net...
-
Tartaric acid is found in many fruits, including grapes, and is partially responsible for the dry texture of certain wines. Calculate the pH and the tartarate ion (C4H4O62-) concentration for a 0.250...
-
On a copy of the grid, draw the graph of the inverse of the function g. 6- 4- -6 -4 -2 0 4 6 x -2- 4- -6 2.
-
Describe how spirituality and religion help to shape ones healthcare choices.
-
A former chairman of the SEC refers to hidden reserves on the balance sheet as cookie-jar reserves. These reserves are built up in periods when earnings are strong and drawn down to bolster earnings...
-
[1] In Calculus, it can be proven that Write a MATLAB script that approximates this infinite series by a finite such that the absolute error falls below a certain tolerance entered by the user. For...
-
a. Draw a graph of Yucatans PPF and explain how your graph illustrates a tradeoff. b. If Yucatan produces 150 pounds of food per month, how much sunscreen must it produce if it achieves production...
-
Suppose that x = [10, -2, 6, 5, -3] and y = [9, -3, 2, 5, -1]. Find the results of the following operations by hand and use MATLAB to check your results. a. z = (x < 6) b. z = (x
-
Suppose that x = [-3, 0, 0, 2, 5, 8] and y = [-5, -2, 0, 3, 4, 10]. Find the results of the following operations by hand and use MATLAB to check your results. a. z = y < ~ x b. z = x & y c. z = x|y...
-
Solve each equation. log 4 = 1
-
Heather Smith and Katie Jones are launching a personal finance software company. They conducted a thorough feasibility analysis, and are now working on their business plan. Heather just sent you an...
-
What is the amount of AMT credit carryforward for 2018, assuming that an individual had an alternative minimum tax of \(\$ 20,000\) and an alternative minimum tax for AMT credit of \(\$ 12,000\) ?
-
Pineapple Beach Hotel Co. (Pineapple) operates a hotel providing accommodation, leisure facilities, and restaurants. Its year end was April 30, 2023. You are the audit senior of Berry & Co. and are...
-
John Brunner is a biochemist at a major university. He is thinking about starting a business to commercialize some animal vaccines on which he has been working. John just registered for a biotech...
-
Ms. Green is single and over 65 years old. She received the following income in 2018: She did not have any adjustments to income. What is the taxable amount of Ms. Green's Social Security? a. \(\$...
-
For each of the following separate cases: Recommend a form of business organization. Describe how income of the recommended form of organization will be taxed. List at least one advantage that...
-
Smthe Co. makes furniture. The following data are taken from its production plans for the year. Required: 1. Determine the hazardous waste disposal cost per unit for chairs and for tables if costs...
-
The water inflow rate to a certain tank was kept constant until the water height above the orifice outlet reached a constant level. The inflow rate was then measured, and the process repeated for a...
-
In the system shown in Figure, a component such as a valve has been inserted between the two lengths of pipe. Assume that turbulent flow exists throughout the system. Use the resistance relation...
-
The cylindrical tank shown in Figure 7.4.3 has a circular bottom area A. The mass inflow rate from the flow source is qmi(t), a given function of time. The flow through the outlet is turbulent, and...
-
Pharoah Enterprises purchased a delivery truck on January 1 , 2 0 2 5 , at a cost of $ 2 6 , 0 0 0 . The truck has a useful life of 7 years with an estimated salvage value of $ 5 , 9 1 0 . The...
-
Consider the following recurrence relation: A(1)=1, A(n) = 2A(n-1)+2"-1 Use the method of unraveling to find a closed form for A(n).
-
Given the following formula: Monthly Pay= [rate + rate / ([1+rate] ^(months) -1) X principle Where rate of 6% means 6/1200 and Months means number of years x 12 Possible data to test: Principle 12200...
Study smarter with the SolutionInn App