Lavi M.

asked • 11/17/20

How to write or solve these problems in matlab?

Problem1:

Enter the following variables into your command window:

A=[1 2 3:];

B=[1:2:3];

Can you subtract A from B?

Can you add A to A?


Problem2:

Enter the following data into the Matlab command window.

A=[02: 1 4];

B=[1 3; 2 6]:

What is A*B? What is A.*B?

What does A.^-I produce verses A^-1?


Problem3:

Given the matrix: M=[1 1; 1 3;]; Use loops to determine how many

of the entries are greater than I and the location of all qualifying entries (the corresponding row and column)


Problem4:

Find Taylor series using MATLAB for the following functions:

1. sin(x) up to 6th order

2. cos(x) up to 8th order

3. 1/1-x up to 10th order


Problem5:

Using the Newton-Raphson routine determine the zero of the function

• f(x)= ex - e-2x+ 1.

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.