Download presentation

Presentation is loading. Please wait.

Published byRebecca Kirk Modified over 4 years ago

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

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

3
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

4
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

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

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

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

8
End

Similar presentations

OK

Bellwork: Graph each line: 1. 3x – y = 6 2. Y = -1/2 x + 3 Y = -2

Bellwork: Graph each line: 1. 3x – y = 6 2. Y = -1/2 x + 3 Y = -2

© 2018 SlidePlayer.com Inc.

All rights reserved.

To ensure the functioning of the site, we use **cookies**. We share information about your activities on the site with our partners and Google partners: social networks and companies engaged in advertising and web analytics. For more information, see the Privacy Policy and Google Privacy & Terms.
Your consent to our cookies if you continue to use this website.

Ads by Google

Ppt on food security in india Ppt on main bodies of uno rules Ppt on world book day april Ppt on the art of war online Ppt on computer vs books Download ppt on rectification of errors Ppt on conservation of momentum in two Ppt on artificial intelligence for speech recognition Ppt on rain water harvesting download Ppt on west bengal shops and establishment act