Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Accounting Basics Expert

EXERCISE 1

Enter the following matrices and vectors in MATLAB

(a)Perform the following operations: AB, BA, cB and Ad (use standard linear algebra multiplica- tion).

(b) Construct a 3 × 6 matrix C = [A B ] and a 4 × 3 matrix D = [B].c
(c) Use the "backslash" command to solve the system Ax = b.
(d) Replace A(2; 3) with 0.
(e) Extract the 3rd row of the matrix A.
(f) A row or a column of a matrix can be deleted by assigning the empty vector [] to the row or the column. For instance A(2,:)=[] deletes the second row of the matrix A.

Delete the third row of the matrix B.

EXERCISE 2

Recall that a geometric sum is a sum of the form a + ar + ar2 + ar3 + : : :.

(a)Write a function ?le that accepts the values of r, a and n as arguments and uses a for loop to return the sum of the ?rst n terms of the geometric series. Test your function for a = 3, r = 1=2 and n = 10.

(b)Write a function ?le that accepts the values of r, a and n as arguments and uses the built in command sum to ?nd the sum of the ?rst n terms of the geometric series. Test your function for a = 3, r = 1=2 and n = 10.

Hint: Start by de?ning the vector e=0:n-1 and then evaluate the vector R = r.^e. It should be easy to ?gure out how to ?nd the sum from there.

EXERCISE 3

The counter in a for or while loop can be given explicit increment: for i =m:k:n to advance the counter i by k each time. In this problem we will evaluate the product of the ?rst 10 odd numbers 1 · 3 · 5 · : : : · 19 in two ways:

(a) Write a script ?le that evaluates the product of the ?rst 10 odd numbers using a for loop.

(b) Evaluate the product of the ?rst 10 odd numbers using a single MATLAB command. Use the MATLAB command prod.

EXERCISE 4

Write a script ?le that creates a row vector v containing all the powers of 2 below 1000. The output vector should have the form: v = [ 2; 4; 8; 16 : : : ]. Use a while loop.

EXERCISE 5

Write a function ?le that creates the following piecewise function:

Assume x is a scalar. The function ?le should contain an if statement to distinguish between the di?erent cases. The function should also display "the function is undefined at x = 10" if the input is x = 10. Test your function by evaluating f(1), f(4), f(7) and f(10).

Accounting Basics, Accounting

  • Category:- Accounting Basics
  • Reference No.:- M91414256
  • Price:- $70

Priced at Now at $70, Verified Solution

Have any Question?


Related Questions in Accounting Basics

Question - victorias 2016 tax return was due on april 15

Question - Victoria's 2016 tax return was due on April 15, 2017, but she did not file it until June 12, 2017. Victoria did not file an extension. The tax due on the tax return when filed was $9,400. In 2016, Victoria pai ...

Question - examine and discuss how to use the balance

Question - Examine and discuss how to use the balance scorecard to improve financial performance of an organization. • What is the balance scorecard and how does it impact the strategic plan? • Discuss and describe the d ...

Question - consider the following account starting balances

Question - Consider the following account starting balances and transactions involving these accounts. Use T-accounts to record the starting balances and the offsetting entries for the transactions. The starting balance ...

Question - pickle incorporated acquired a 10000 bond

Question - Pickle Incorporated acquired a $10,000 bond originally issued by its 80%-owned subsidiary on January 2, 2013. The bond was issued in a prior year for $11,250, matures January 1, 2018, and pays 9% interest at D ...

Question solve the following questions by using excel

Question: Solve the following questions by using Excel formula. Show me your data 1. If you deposit $20,000 in a bank account that pays 15% interest annually, how much will be in your account after 6 years? 2. If you are ...

Question - alpha corp was organized on january 2 2018

Question - Alpha Corp., was organized on January 2, 2018. During the first year of operation, Alpha issued 100,000 shares of $1 par value common stock at a price of $50 cash per share. On December 31, 2018, Alpha reporte ...

Question - exter co receives terms of 210 n30 on all

Question - Exter Co. receives terms of 2/10, n/30 on all invoices from Garn Industries. On January 15, 2008, Exter purchased items from Garn for $4,200, excluding taxes and shipping costs. What amount would Exter use as ...

Question -a jalisco inc net credit sales of 75000 and

Question - A) Jalisco Inc. net credit sales of $75,000 and estimates that bad debts are approximately 3% of net credit sales. The yearend balance in accounts receivable is $200,000 and $2,000 of accounts receivable were ...

Question - on january 1 2015 canden company started to make

Question - On January 1, 2015, Canden Company started to make annual deposits in order to accumulate $1,500,000 by January 1, 2019. This fund will earn annual interest of 8%. What are the four annual deposits that Canden ...

Question select article or case in the last 3-5 years on a

Question: Select article or case in the last 3-5 years on a legal topic and write a paper between 1000 to 1500words analyzing the legal issues raised by the article or case , the implication of the case for business mana ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As