- Type
- Quiz
- Course
- MTH643 Introduction to MATLAB
- Size
- PDF 610 KB
- Updated
- 23 Oct 2026
You get 3 free files a day on the website. Add the Chrome extensionSign in with the extension for 30 a day.
Preview text
Text from pages 1, 2, 3 of 22. Download the file for all 22 pages.
L02_Q01: Find value of following trigonometric function at 𝑥= 𝜋 2 using subs command Cos(x), Sin(x), Tan(x). (FOLLOW P#37-38 - LECT#02) clear all close all clc syms x a a=cos(x) subs(a,x,sym('pi/2')) a=sin(x) subs(a,x,sym('pi/2')) a=tan(x) subs(a,x,sym('pi/2'))
L02_Q02: Find value of following trigonometric function at 𝑥= 𝜋 2 using sym command Cos(x), Sin(x), Tan(x). (FOLLOW P#37-38 - LECT#02) close all clear all clc cos(sym(pi/2)) sin(sym(pi/2)) tan(sym(pi/2))
𝜋
(ABU SULTAN MID TERM Q#3(a) – 26 DEC 2019 – 12:00 pm)
clear all close all clc syms x y u f u=2*x+x*y^2+3*y; subs(u,x,5) f=sin(x) subs(f,x,pi/2)
L02_Q04: Find the value of the following polynomials at x=2 using subs command.
clear all close all clc syms x y p u p=x^2+3*y^2*x+10 subs(p,x,2) u=x^3+4*x+10 subs(u,x,2) close all clear all clc syms x y [x,y]=solve('x^2-y=2','y-2*x=5') x(1) y(1)
LECT#03) (ABU SULTAN MID TERM Q#3(b) – 26 DEC 2019 – 12:00 pm)
close all clear all clc syms x solve('2*x^3+x^2+3*x+4=0')
(FOLLOW P#066-71 - LECT#03) and (FOLLOW P#82,86 - LECT#04)
clc close all clear all syms x y solve('2*x+7*y=3','3*x^2+2*y=1') ezplot('3*x^2+2*y=1',[-2,2])
title(' Parabola')
%Plot the graph of e^(-x) and Sin(x) %on the interval [0, 8] using ezplot, hold on and hold off commands.
clc clear all close all syms x ezplot(exp(-x),[0,8]) hold on ezplot(sin(x),[0,8]) hold off xlabel('x') ylabel('y')
grid %Plot the graph of e^(-x) and Sin(x)on the interval [0, 8] using plot, hold on and hold off.
clc clear all close all X=0:0.1:8; plot(X,exp(-X)) hold on plot(X,sin(X)) hold off xlabel('x') ylabel('y')
grid
L04_Q10: 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". (P#98-100 - LECT#04) %Plot the parametric graph of the circle with center at (0; 0), % with radius 1 and with increment of 0:01 in the domain set. clc clear all close all t=0:0.01:1; plot(cos(2*pi*t),sin(2*pi*t)) xlabel('x') ylabel('y') title(' Parametric Plot of the Circle') grid
L04_Q11: Plot the contour plots of the expression x2 + y2 using meshgrid and contour commands. Label the horizontal axis with x and vertical axis with y. Make the shape of the graph square. Keeps the title of the graph " Contour plotting of squares".
(P#102-104 - LECT#04)
%Plot the contour plots of the expression x2 + y2 using meshgrid and contour commands.
%Keeps the title of the graph " Contour plotting of squares". clc clear all close all
xlabel('x') ylabel('y') title(' Contour Plotting of Squares')
Related MTH643 files
All MTH643 files →- MTH643 Final Term Special Handouts Lectures 8-15 Handout PDF 6.2 MB
- MTH643 Final Term Current Paper by S Khan Academy Final term PDF 606 KB
- MTH643 Practice Questions Lectures 1-7 Quiz PDF 2.3 MB
- MTH643 Practice Questions Solved by Mahar Afaq Safdar Muhammadi Quiz PDF 1 MB
- MTH643 Solved Questions Lectures 9-15 Set 2 Quiz PDF 718 KB
- MTH643 Quiz Lectures 1-5 by Rashid Hussain Quiz PDF 2.3 MB
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.