Professional Documents
Culture Documents
Matlab Project Report Viva Set Pk-1
Matlab Project Report Viva Set Pk-1
Answer:
Matlab (Matrix Laboratory) is a fourth generation high-level programming language and interactive
environment for numerical computing, visualization and programming. It has numerous built-in command and
math functions that help us in mathematical calculations, generating plots, and performing numerical methods.
Answer:
Any ten commands used in MATLAB are listed below along with their meanings:
Project 3. Find the roots of the following simulataneous equations using the gauss-seidel method.
20*x+y-2*z=17….eq1
3*x+20*y-z=-18…eq2
2*x-3*y+20*z=25…eq3
Solution:
Converting into form:
x=(1/20)(17-y+2*z)
y=(1/20)(-18-3*
z=(1/20)(25-2*x+3*y)
1|Page
script:
Project 4. Evaluate the integral of x^4 within the limits-3 to 3 using simpson’s 1/3 rule:
Solution:
2|Page
Project 5. Evaluate the derivative of the functions given below
a). f(x)=(x+2)*(x^2+3)
Solution:
b). f(x)=(x^2+1)^17
Solution:
3|Page
Project 7. Find the area under the curve f(x)=x^3-2*x+5 enclosed between x axis
and the ordinates at x=1 and x=2, i.e. [-4,9].
Solution:
Solution:
4|Page
b. Indefinite intergral f(x)= x^n and f(x)= sin(n*t)
Solution:
Solution:
THE END
5|Page