Gradient & Mathematical Modeling and Simulation Using MATLAB Prof. Muhammad Saeed.

Slides:



Advertisements
Similar presentations
Differential Equations Prof. Muhammad Saeed Mathematical Modeling and Simulation UsingMATLAB (Plus Symbolic Mathematics) 1.
Advertisements

S i m u l i n k Prof. Muhammad Saeed Mathematical Modeling and Simulation UsingMATLAB 1.
Computer Graphics Prof. Muhammad Saeed Dept. of Computer Science & IT Federal Urdu University of Arts, Sciences and Technology.
Mathematics Roots, Differentiation and Integration Prof. Muhammad Saeed.
Stress Matrix Visualization Wednesday, 9/4/2002. Stress Vector.
CSE 123 Plots in MATLAB. Easiest way to plot Syntax: ezplot(fun) ezplot(fun,[min,max]) ezplot(fun2) ezplot(fun2,[xmin,xmax,ymin,ymax]) ezplot(fun) plots.
The gradient as a normal vector. Consider z=f(x,y) and let F(x,y,z) = f(x,y)-z Let P=(x 0,y 0,z 0 ) be a point on the surface of F(x,y,z) Let C be any.
1. (a) (b) The random variables X 1 and X 2 are independent, and each has p.m.f.f(x) = (x + 2) / 6 if x = –1, 0, 1. Find E(X 1 + X 2 ). E(X 1 ) = E(X 2.
1. Overview 2. plot in 2D 3. Plot in 3D 4. Other possible charts 5. Engineers: label your plots! 6. Plots & Polynomial Plotting 11.
Moody Mathematics $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400.
Part 5 Chapter 19 Numerical Differentiation PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill.
Start of Presentation Mathematical Modeling of Physical Systems © Prof. Dr. François E. Cellier September 20, st Homework Problem We wish to analyze.
1 Financial Mathematics Clicker review session, Midterm 01.
1 Financial Mathematics Clicker review session, Final.
1 Financial Mathematics Clicker review session, Midterm 01.
[FX,FY,FZ,...] = GRADIENT(F,...) [FX,FY,FZ,…] is numerical gradient of matrix F Distance between grid points in X,Y,Z,… direction FX corresponds to dF/dx,
September 24, 2009Theory of Computation Lecture 6: Primitive Recursive Functions II 1 Homework Questions Question 1: Write a program P that computes 

Mathematics for Business (Finance)
Binomial test (a) p = 0.07 n = 17 X ~ B(17, 0.07) (i) P(X = 2) = = using Bpd on calculator Or 17 C 2 x x (ii) n = 50 X ~ B(50,
7-3 NOTES Algebra II. Starter Given that f(x) = 3x – 2, and g(x) = 2x 2, f(x) – g(x) = f(x) *g(x) g(f(x)) =
Bell Assignment 1.Graph the equation y = x 3 + 3x 2 – 1 on your GUT. Then use the graph to describe the increasing or decreasing behavior of the function.
7.6 Rational Zero Theorem Algebra II w/ trig. RATIONAL ZERO THEOREM: If a polynomial has integer coefficients, then the possible rational zeros must be.
Piecewise Graphs A piecewise function is defined by at least two equations, each of which applies to a different part of the function’s domain. One example.
Национальная процедура одобрения и регистрации проектов (программ) международной технической помощи (исключая представление информации об организации и.
Computer Graphics Prof. Muhammad Saeed.

1 Solve each: 1. 5x – 7 > 8x |x – 5| < 2 3. x 2 – 9 > 0 :
Moody Mathematics $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 $100 $200 $300 $400.
Lecture 14 Prof. Dr. M. Junaid Mughal Mathematical Statistics 1.
1. Overview 2. plot in 2D 3. Plot in 3D 4. Other possible charts 5. Engineers: label your plots! 6. Plots & Polynomial Plotting 11.
1. 3x + 2 = ½ x – 5 2. |3x + 2| > x – 5 < -3x |x + 2| < 15 Algebra II 1.
Jeopardy Factoring Functions Laws of Exponents Polynomial Equations Q $100 Q $200 Q $300 Q $400 Q $100 Q $200 Q $300 Q $400 Final Jeopardy Q $500.
Proof Methods & strategies Section 1.7. Proof by Cases We use the rule of inference P 1  P 2 ...  P n  q  (P 1  q)  (P 2  q) ..  (P n  q)
基 督 再 來 (一). 經文: 1 你們心裡不要憂愁;你們信神,也當信我。 2 在我父的家裡有許多住處;若是沒有,我就早 已告訴你們了。我去原是為你們預備地去 。 3 我 若去為你們預備了地方,就必再來接你們到我那 裡去,我在 那裡,叫你們也在那裡, ] ( 約 14 : 1-3)
SECTIONS Lecture 3 of CIRCLES CONIC.
Area of R = [g(x) – f(x)] dx
Practical Statistics for Physicists
Stress Matrix Visualization
Metropolis Algorithm Matlab practice
Area Bounded by Curves sin x cos x.
Numerical Differentiation
Theory of Computation Lecture 6: Primitive Recursive Functions I
חוקי ניוטון.
By John E. Hopcroft, Rajeev Motwani and Jeffrey D. Ullman
حددي الشوارع الرئيسية و الثانوية ؟؟
X-STANDARD MATHEMATICS ONE MARK QUESTIONS
a kind of filtering that leads to useful features
Magmatic Phases - I.
a kind of filtering that leads to useful features
محاسبات عددی و برنامه نویسی
Слайд-дәріс Қарағанды мемлекеттік техникалық университеті
.. -"""--..J '. / /I/I =---=-- -, _ --, _ = :;:.
Partner Whiteboard Review.
II //II // \ Others Q.
Function Notation and Evaluating Functions
I1I1 a 1·1,.,.,,I.,,I · I 1··n I J,-·
Atomic Orbitals Ken Rogers Miami Killian.
Math 3360: Mathematical Imaging
-·.-...-· A. -.. ) ,.,.. -.,., · o# --·'1>,.. ·-·-. ·-· ;'/' : ,.,. - ' p ·-·- ·-- 'II"; -.-. t-.. p
Warm Up Use long division to find (6
6-1: Operations on Functions (+ – x ÷)
Two Very Important Questions:
Math 3360: Mathematical Imaging
Gradient test © T Madas.
Theory of Computation Lecture 5: Programs and Computable Functions III
EXP file structure.
Sample Problems Calculus Bowl 2015
Sample Problems Calculus Bowl 2019
. '. '. I;.,, - - "!' - -·-·,Ii '.....,,......, -,
Presentation transcript:

Gradient & Mathematical Modeling and Simulation Using MATLAB Prof. Muhammad Saeed

Gradient I: x =-2:0.2:2; y = x.* exp(-x.^2); px = gradient(y,.2); quiver(x,px)

Gradient II: [x,y] = meshgrid(-2:0.2:2); z = x.* exp(-x.^2 - y.^2); [px,py] = gradient(z,.2,.2); contour(x,y,z), hold on, quiver(x,y,px,py), hold off

Gradient II: [x,y] = meshgrid(-2:0.2:2); u = x.* exp(-x.^2 - y.^2); [gx,gy] = gradient(u,.2,.2); contour(x,y,u), hold on, quiver(x,y,gx,gy), hold off

[x,y] = meshgrid(-4:4,-3:3); u = x.*x+y.*y; v = 4*del2(u) V =

[x,y,z] = meshgrid(-3:3,-3:3,-3:3); u = x.*x + y.*y + z.*z; v = 6*del2(u)

v(:,:,1) = v(:,:,2) = v(:,:,3) = v(:,:,4) = v(:,:,5) = v(:,:,6) = v(:,:,7) =

End