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

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

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