Skip to content
VUBuddy

MTH643 Midterm Past Papers Set 2

Introduction to MATLAB PDF 161 KBUpdated 23 Oct 2026
Midterm past paper MTH643 Midterm Past Papers Set 2 PDF 161 KB
vubuddy.com
Type
Midterm past paper
Course
MTH643 Introduction to MATLAB
Size
PDF 161 KB
Updated
23 Oct 2026
Free download 0 of 3 used today
Download free · 161 KB

You get 3 free files a day on the website. Add the Chrome extension for 30 a day.

Unlimited downloads in the Android app Get it free on Google Play

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.

All MTH643 files →
MTH643 Introduction to MATLAB All MTH643 handouts, past papers, quizzes and MCQs in one place. Open course page

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.