Compute the amount you spent in buying shares

Assignment Help MATLAB Programming
Reference no: EM132103832

MTHLAB to write a program and post it please.

The price, in dollars, of a certain stock over a 10-day period is given as: price = [19, 18, 22, 21, 25, 19, 17, 21, 27, 29].

Suppose you owned 1000 shares at the start of the 10-day period, and you bought 100 shares every day the price was below $20 and sold 100 shares every day the price was above $25.

Use MATLAB to compute

(a) the amount you spent in buying shares,

(b) the amount you received from the sale of shares,

(c) the total number of shares you own after the 10th day, and

(d) the net increase in the worth of your portfolio.

Reference no: EM132103832

Questions Cloud

Develop two use case scenarios for it : Pretend that you have been charged with the task of redesigning a Web site that sells some retail products (books, music, clothes, etc)
How much depreciation expense should the company recognize : It has an estimated useful life of 4 years. Using the straight-line method, how much depreciation expense should the company recognize on December 31
Describe the high-level business model of your company : Describe the high-level business model of your company and the typical problems (at least 5) faced by users.
Determine the consolidated balances as of january : At that time, the fair value of Standaround's net assets were equal to the book values. Determine the consolidated balances as of January 2, 2014
Compute the amount you spent in buying shares : The price, in dollars, of a certain stock over a 10-day period is given as: price = [19, 18, 22, 21, 25, 19, 17, 21, 27, 29].
How many bits of random padding are needed : Why would we like to minimize the amount of random padding? How many bits of random padding are needed? Justify your an- swer.
What will be the amount of accumulated depreciation : Assuming the asset's salvage value is $2,300, what will be the amount of accumulated depreciation on this asset on December 31, Year 3
Compute the tax paid by the employee : For each employee compute the tax paid by the employee, according to this formula: If the employee is 55 years old (or older).
Explain what are locality and spacial locality : Explain what are locality and spacial locality, and give an very simple example (in the area of computer architecture) to illustrate the point.

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Estimate the numerical wave speed

Scheme and try a couple of values for α, one close to 1 and the other not. Convince yourself that a smaller Δt is not necessarily a better choice.

  Design simple interface hardware

Evaluate the capability in selecting and configuring a microcontroller unit designing simple interface hardware and writing subroutines to operate those interfaces

  Mobile robot control and potential field

Write a MATLAB code to compute forces due to each obstacle and goal. Compute total force on vehicle at point(x,y).

  Create a function that returns a vector of t

Consider an experiment of tossing a biased coin n = 100 times and recording the number of heads. Let the probability of heads be p = 0.7.

  Write a script to solve the following systems of equations

Write a script to solve the following systems of equations using both matrix left division (\) and the inverse matrix method and Show that you have tested your MATLAB code appropriately

  Compute the closed loop transfer function of the system

ENGD2050 Control and Instrumentation Engineering - Write a MATLAB code to compute the closed loop transfer function of the system. Plot the Bode plot

  Write function that will receive three positive integers

Write a function is_pythag_triple that will receive three positive integers (a, b, c, in that order) and will return logical 1 (for true) or 0 (for false)

  What is the difference between a script and function

What is the difference between a script and function? How do you create a new script or function in MATLAB? List two ways to run a script in MATLAB.

  Considered to equal when the result of one array subtract

Two arrays are considered to be equal when the result of one array subtracted from the other is an array of zeros. In the script file, create the MATLAB commands to prove the following relationships (use arrays that you makeup yourself)

  Use matlab to verify the central limit theorem

Use Matlab to verify the central limit theorem for the sum of N independent exponential RVs (with a=0 and b=2) for N= 10 and 20. Repeat for the sum of N independent Weibull RVs (with a=1 and b=4). Comment on the fit to the approximate Gaussian pdf..

  Consider the predator-prey models

Consider the predator-prey models developed early part of the 20 th  century in which the number of predators and preys may be predicted using the pair of ODEs

  Design and fir filter in matlab

What does the pole-zero diagram tells you about the filter

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd