0% found this document useful (0 votes)
36 views

Write The MATLAB Program For Each of Following Questions

The document outlines 11 MATLAB programming questions involving: 1) Calculating integrals of functions 2) Finding derivatives and critical points of functions 3) Calculating areas under curves and between functions 4) Analyzing matrices, vectors, and systems of equations 5) Fitting lines to data and using the line to predict values

Uploaded by

Amaal Mohey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views

Write The MATLAB Program For Each of Following Questions

The document outlines 11 MATLAB programming questions involving: 1) Calculating integrals of functions 2) Finding derivatives and critical points of functions 3) Calculating areas under curves and between functions 4) Analyzing matrices, vectors, and systems of equations 5) Fitting lines to data and using the line to predict values

Uploaded by

Amaal Mohey
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Write the MATLAB program for each of following questions:

1) Determine the value of :


 cshc x dx
2
a)

b)  cosh x dx
c)  coth x dx
 sin x cos x
2 2
d) dx
1

x  3x  1
3
e) dx
1

2) Find the derivative of :


a) f ( x)  3x 2  4 x  1 , then find the value of f ' (2)
b) g ( x)  3 ln x  e 4 x  1 , then find the value of g ' ' (2)

3) Determine the area of the region between y  x 2 and y  x

1
4) Determine the area of the region between y  2 x 2  10 and y  4 x  16

63 t
5) Suppose that the amount of air in a balloon at any time t is given by v(t ) 
4t  1
determine if the balloon is being filled with air or being drained of air at t  8

6) Determine all the critical point for the following functions :


a) f ( x)  6 x 5  33x 4  30x 3  100
b) g (t )  3 t 2 (2t  1)

7) For the following matrix A

2
5 4 2 4 
 
 
 6 3 2 3 
 
 
1 3 5 2 
A 
 
2 1 3 1 
 
 
0 1 4 5 
 
 
a) Find the dimension of A
b) A(:,2)
c) A(3 : 4, :)
d) A(2,:)  []
e) A(6,:)  5
f) A(2 : 3,1 : 2)  [5 4;  2 1]
g) Find the transpose A (by two different ways).
h) Find A2 and A.^ A , then explain the difference between them.
i) Raise each element of A by the corresponding one.

8) Represent a vector x , which starts from 2 to -4 with 10 points . Then find :


a) x(5)
b) x(4 : 6)
c) x(4 : 6) =[]
d) x(10)  9
e) Raise each element of x by the corresponding one.

9) Solve the system of equation by two different ways.


x1  x2  3x3  2
2 x1  x2  4
 x1  5 x2  2 x3  5

10) For the polynomial function represented by f ( x)  5x4  2 x 2  3x  1 find :


a) f (4), f (5)
b) Roots of f (x)

3
11) Fit a straight line to the following data:
x 1 2 3 4 5 6 7
Y 0.5 2.5 2 4 3.5 6 5.5

And then find the value of y(10).

You might also like