0% found this document useful (0 votes)
13 views11 pages

Computer-T10-Soluation of The Sheet - 230418 - 095004

This document contains a worksheet with mathematical and programming exercises in MATLAB. The worksheet contains questions about vectors, matrices, polynomials, plotting functions, and other basic MATLAB operations. The student is asked to use MATLAB to calculate expressions, find volumes, perform operations on matrices and vectors, plot functions, calculate polynomial values and coefficients, and perform polynomial arithmetic.

Uploaded by

Iraqi for info
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)
13 views11 pages

Computer-T10-Soluation of The Sheet - 230418 - 095004

This document contains a worksheet with mathematical and programming exercises in MATLAB. The worksheet contains questions about vectors, matrices, polynomials, plotting functions, and other basic MATLAB operations. The student is asked to use MATLAB to calculate expressions, find volumes, perform operations on matrices and vectors, plot functions, calculate polynomial values and coefficients, and perform polynomial arithmetic.

Uploaded by

Iraqi for info
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/ 11

Ministry of Higher Education and Scientific Research Southern

Southern Technical University


Engineering Technical College / Basrah
Department of Electrical Power Techniques Engineering

Computer/3
Lect.10/ Solution of the Sheet/1
Third Year
Lecturer : M.Sc. 𝐖𝐚𝐟𝐞𝐞𝐪𝐚 𝐀𝐛𝐝𝐮𝐥𝐫𝐚𝐳𝐚𝐤 𝐇𝐚𝐬𝐚𝐧
Sheet /Computer /3-Theorticaly
1-1-True or False. If y has not been assigned a value, MATLAB will allow you to define the
equation x = y ^2 to store in memory for later use.

2-2-Consider the numbers 1, 2, 3. Enter these as components of a column


vector and as components of a row vector.

3- Generate a plot of the tangent function over 0 ≤ x ≤ 1 labeling the x and y axes. Set the
increment to 0.1.

4- Show the same plot, with sin(x) added to the graph as a second curve.
5- Plot the curve x =𝑒 − 𝑡 cos t, y = 𝑒 − 𝑡 sin t, z = t using the plot3 function. Don’t label the
axes, but turn on the grid.

6- Plot the curve x =𝑒 − 𝑡 cos t, y = 𝑒 − 𝑡 sin t, z = t ,in the same figure.

7- True or False. Adding and Subtraction Polynomials in MATLAB,


both vectors must be of the same size, so the shorter vector must be padded with zeros.
8- The command in MATLAB can compute the coefficients of Polynomial ----------------------

9- True or False. There is no limit to the number of dimensions in matrices.

10- The command in MATLAB to find the number of elements of the matrix (A)
Sheet /Computer /3-Practicaly

1- Use MATLAB to calculate the following quantities:


8
i. 5 3 + 37
1 4 6
ii. + +
2+32 5 7

2- - If the volume of a cylinder of height h and radius r is given by V = 𝑟 2 h, use MATLAB


to find the volume enclosed by a cylinder that is 12 cm high with a diameter of 4 cm.
3- Given A = [1; 2; 3]; B = [4; 5; 6];, find the array product of the two vectors

1 2 3 7 8 9
4- Suppose that 𝐴 = 4 5 6 . Use it to create 𝐵 = 7 8 9
7 8 9 4 5 6
5- Create a row vector of data points to represent -p ≤ x ≤p with an increment of 0.2.
Represent the same line using linspace with 100 points and with 50 points.

6- Find the result for this equation, Where x=10 and y=-30
x+2 72
z= +
2+32 √x
7- -Enter these matrixes in MATLAB and then find:
3 9
𝐴 = −2 7 ,
1 6
22 −4
𝐵 = 43 1
−9 7
1. A>B.
2. A<0 OR B>0.
3. Expand A into matrix with 3x3 and put the element in position (3,3) =10.
8- For the polynomial below find the following in MATLAB program:
𝒑(𝒙)= ( 𝑥 5 −𝟐 𝑥 4 +𝟑 𝑥 3 +𝟒 𝒙−𝟏𝟐 )
1/ Value of a Polynomial, when x = 2.
2/ Roots of a Polynomial
3/ Polynomial Coefficients
4/ Derivatives of Polynomials
9- For the polynomials below find the following in MATLAB program:
𝒑𝟏(𝒙)=( 𝑥 3 −𝟏𝟒 𝑥 2 +𝟐𝟔 𝒙−𝟐𝟒 )
𝒑𝟐(𝒙)=(𝟏𝟎 𝑥 2 +𝟑 𝒙−𝟐)
1/ Adding Polynomials.
2/ Subtracting Polynomials.
3/ Multiplying Polynomials.
4/ Dividing Polynomials.
Thank You

You might also like