Question

10. (12 points) The arrays price A, price B and price C given below contain the price in dollars of the three stocks over 10

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Code:

a1=[0 19 18 22 21 25 19 17 21 27 29] %Array for price A

a2=[0 22 17 23 24 18 16 25 28 27 27] %Array for price B

a3=[0 10 11 12 13 19 17 20 21 24 28] %Array for price C

x=[0 1 2 3 4 5 6 7 8 9 10] %No. of days for x axis

plot(x,a1,x,a2,x,a3) %Plot the graph

xlabel('Days') %Label for x-axis

ylabel('Stock Price') %Label for y-axis

legend('Price A','Price B','Price C','Location','southeast') %Legend of the graph

Output:

30 25 20 Stock Price 15 10 5 Price A Price B Price 2 4 6 8 10 Days

Add a comment
Know the answer?
Add Answer to:
10. (12 points) The arrays price A, price B and price C given below contain the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • mathlab 10. (12 points) The arrays price A, price B and price C given below contain...

    mathlab 10. (12 points) The arrays price A, price B and price C given below contain the price in dollars of the three stocks over 10 days. price A = [19, 18, 22, 21, 25, 19, 17, 21, 27, 29) price B = [22, 17, 23, 24, 18, 16, 25, 28, 27, 27] price C - [10, 11, 12, 13, 19, 17, 20, 21, 24, 28) For the stock data, write a MATLAB code to plot the stock price vs....

  • In Matlab The arrays price A, price B and price C given below contain the price...

    In Matlab The arrays price A, price B and price C given below contain the price in dollars of the three stocks over 10 days. price A = [19, 18, 22, 21, 25, 19, 17, 21, 27, 29] price B = [22, 17, 23, 24, 18, 16, 25, 28, 27, 27] price C = [10, 11, 12, 13, 19, 17, 20, 21, 24, 28] For the stock data, write a MATLAB code to plot the stock price vs. days graph...

  • Project in matlab. I have the correct ak value but not the correct ao value. My code is attached ...

    Project in matlab. I have the correct ak value but not the correct ao value. My code is attached below also 2. Determine and plot the magnitude and phase spectrum of the Fourier series coefficients a, that is, plot ja, I as a function of discrete frequencies Jok and La, as a function of discrete frequencies fok 03 025 蓋0.2 0.15 0.1 o o5 ·10-8-6 4610 phase -2 -2 8- t= 0: .01:4; 9- to = 4; 10- fo =1/4;...

  • Therefore, for this program you will read the data in the file named weatherdata_2.txt into arrays...

    Therefore, for this program you will read the data in the file named weatherdata_2.txt into arrays for the wind speed and for the temperature. You will then use the stored data to calculate and output the average wind speed and the average temperature. Create a constant with a value of 30 and use that to declare and loop through your arrays and as a divisor to produce your averages. Here is the data file (below). 1. 14 25 2. 12...

  • Assembly Language Programming Assignment program must be in: MASM assembly language / x86 architecture / irvine...

    Assembly Language Programming Assignment program must be in: MASM assembly language / x86 architecture / irvine library procedures Objectives: 1. using register indirect addressing 2. passing parameters 3. generating “random” numbers 4. working with arrays Description: Write and test a MASM program to perform the following tasks: 1. Introduce the program. 2. Generate ARRAYSIZE random integers in the range [LO = 10 .. HI = 29], storing them in consecutive elements of an array. ARRAYSIZE should be set to 200....

  • 1 A measurement systems experiment involving 20 parts, three operators, and two measurements per ...

    1 A measurement systems experiment involving 20 parts, three operators, and two measurements per part is shown in Table 8E. 12. (a) Estimate the repeatability and reproducibility of the gauge (b) What is the estimate of total gauge variability? (c) If the product specifications are at LSL 6 and USIL - 60, what ca you say about gauge capa bility? TABLE 8E. 12 Measurement Data for Exercise 8.34 Operator 1 Operator 2 Operator 3 Measurements Measurements Measurements Part Number 1...

  • A soft drink manufacturer uses fire agents to handle premium distribution for is various products. The marketing director desired to study the timeliness with which the premiums are distributed. Twent...

    A soft drink manufacturer uses fire agents to handle premium distribution for is various products. The marketing director desired to study the timeliness with which the premiums are distributed. Twenty transactions for each agent were selected at random and the time lapse (in days) for handling each transaction was determined. The results follow: Agent 1 Agent 2 Agent 3 Agent 4 Agent 5 24 18 10 15 33 24 20 11 13 22 29 20 8 18 28 20 24...

  • A doctor discovers a particular disease and determines the life expectancy is not good. He gathers...

    A doctor discovers a particular disease and determines the life expectancy is not good. He gathers the data for his patents and posts it in the table below. The claims that the average life expectancy once the disease presents itself is less than 15 days. Check his claim and make an appropriate report about your findings Patient Days till passing Days -Patient # 1-24 2 -23 3 -13 4 -20 5 -10 6 -18 7 -13 8 -14 9 -24...

  • After discussing the issue with you and others in the Finance department, the manager decided to...

    After discussing the issue with you and others in the Finance department, the manager decided to change the payment terms for Accounts Receivable. The payment time remained at 14 days, but the penalty for late payments was increased. After about 3 months under the new payment terms, you asked the manager to collect a second stratified random sample. The data is presented in the second column of the worksheet (see the tab titled, “Data – Case #2) under the Heading...

  • 4 Stocks below A В C Е 1 25 POINTS 2 You currently own the four...

    4 Stocks below A В C Е 1 25 POINTS 2 You currently own the four stocks below. 3 4 1. Please compute the portfolio beta and expected return. Put your final answers in the 5 provided green shaded cells. 6 2. Which of the stocks should you sell? Why? 7 10 11 3. Assume you sell the stock you mentioned in #2 above and invest the proceeds in an S&P 12 500 index fund. What will your new portfolio...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT