Matlab Problems
Matlab Problems
MAT1001
CALCULUS FOR ENGINEERS
Submitted by
Mahek Solanki
Reg. Number: 23BCE7446
To
Dr. Dibyendu Sekhar Mandal
Slot: L37+L48
Venue: 304 AB-1
VIT-AP UNIVERSITY
ANDHRA PRADESH
INDIA
1. Plot r^2 = 2 sin 5t 0 <= t <= 2pi using fill command
Program:
Output:
2. Plot y=sin(x)/x -3pi <= x <= 3pi using area command
Program:
Output:
3. Histogram of 50 randomly distributed numbers between 0 and 1.
Program:
Output:
4) z= -½(x^2) + xy + y^2 where |x| less than equal to 5, |y| less than
equal to 5 using contour function.
Program:
Output:
5) z = x^2 + y^2 - 5sin(xy) where |x| less than equal to 2, |y| less
than equal to 2, using quiver function.
Program:
Output:
3D PLOTS:
1. Plot a parametric space curve x(t) = t, y(t) = t^2, z(t) = t^3 where 0
less than equal to t less than equal to 1 using plot3 function.
Program:
Output:
2. Plot of four filled polygons with three vertices each
Program:
Output:
3. z = cosx. Cos y. e^(-root(x^2+y^2)/4), |x| less than equal to 5, |y|
less than equal to 5, using surf function where u= -5:.2:5, [X, Y]
=mesh grid (u, u).
Program:
Output:
4.Surfl → 3D surface plot with specified light source.
Program:
Output:
5) z=-5/(1+x^2+y^2), |x| less than equal to 3, |y| less than equal to 3
using function mesh.
Program:
Output:
6)A unit sphere centered at origin and generated by three matrices
x, y and z of size 21 * 21 each
Program:
Output:
7) A cylinder generated by r = sin(3*pi*z) + 2 where 0 less than equal
to z less than equal to 1, and 0 less than equal to theta less than
equal to 2pi.
Program:
Output:
Maxima Minima 1st page
1.
Program:
Output:
2.
Program:
Output:
3.
Program:
Output:
MAX MIN 2ND PAGE
1.
Program:
Output:
2.
Program:
Output:
3.
Program:
Output:
4.
1.
2.
4.
8.
1.
2.
Vector Differentiation
1.
3)
1.
Program Output