Lavi M.

# 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.