- Type
- Midterm past paper
- Course
- MTH643 Introduction to MATLAB
- Size
- PDF 161 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extension for 30 a day.
Preview text
Text from pages 1, 4, 5 of 17. Download the file for all 17 pages.
Solved By M L!K Hafeez
Q.No.1
%find the value of trignometric function at x=pi/2 %using subs command cos(x),sin(x),tan(x)
Ans;
clc clear all syms x a=cos(x) b=sin(x) c=tan(x) A=subs(a,x,pi/2) B=subs(b,x,pi/2) C=subs(c,x,pi/2)
Q.No.2
%find the value of trignometric function at x=pi/2 %using sym command cos(x),sin(x),tan(x)
Ans;
clc clear all syms x A=cos(sym(pi/2)) B=sin(sym(pi/2)) C=tan(sym(pi/2))
Q.No.3
%find the value of following using subs comman %u(x,y)=2x+xy^2+3y at x=5 and f(x)=sin(x) at x=pi/2 %on the interval [0, 8] using plot, hold on and hold off commands.
%Finally gives the title “Multiple Graphs”.
Ans;
clc clear all syms x x=0:0.01:8 f=exp(-x) g=sin(x) Plot(x,f) hold on plot(x,g) hold off xlabel(‘x’) ylabel(‘y’)
Q.No.9
%on the interval [0, 8] using ezplot, hold on and hold off commands.
%Finally gives the title “Multiple Graphs”.
Ans;
clc clear all syms x f=exp(-x) g=sin(x) ezplot(f,[0,8]) hold on ezplot(g,[0,8]) hold off xlabel(‘x’) ylabel(‘y’)
Q.No.10
%Plot the parametric graph of the circle with center at (0; 0), radius 1, and with
%increment of 0:01 in the domain set. Label the horizontal axis with x and vertical axis with y.
%Make the shape of the graph square. Keeps the title of the graph “Parametric plot of the
%circle”
Ans;
clc clear all t=0:0.01:1; plot(cos(2*pi*t),sin(2*pi*t)) xlabel(‘x’) ylabel(‘y’) title(‘parametric plot of the curcle’)
Q.No.11
%Plot the contour plots of the expression x2 + y2 using meshgrid and contour commands.
Related MTH643 files
All MTH643 files →- MTH643 Midterm Current Paper July 2022 Midterm PDF 982 KB
- MTH643 Midterm MCQs by Rashid Hussain Midterm PDF 4.4 MB
- MTH643 Midterm Past Paper Midterm PDF 46 KB
- MTH643 Midterm Past Papers Midterm PDF 499 KB
- MTH643 Final Term Special Handouts Lectures 8-15 Handout PDF 6.2 MB
- MTH643 Quiz by AB Quiz PDF 736 KB
Get more out of VUBuddy, for free
- Unlimited downloads
- The explanation behind every MCQ answer
- Study offline on slow data
- 30 downloads a day instead of 3
- Sign in and buy Pro Semester here
One Pro Semester membership works in both the extension and the app.