Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Matlab: Write a matlab code to plot 2 vector fields for the 2 following differen

ID: 647781 • Letter: M

Question

Matlab:

Write a matlab code to plot 2 vector fields for the 2 following differential equations:

for x ? -3 and y ? 3 , distance between meshgrid points for x and y = 0.25,[that is x and y varies in steps of 0.25:

(-3 , -2.75, -2.5 , -2.25 etc..)]

The length of quiver arrows should best be of equal length.

Matlab: Write a matlab code to plot 2 vector fields for the 2 following differential equations: for x ? -3 and y ? 3 , distance between meshgrid points for x and y = 0.25,[that is x and y varies in steps of 0.25: (-3 , -2.75, -2.5 , -2.25 etc..)] The length of quiver arrows should best be of equal length.

Explanation / Answer

[x,y] = meshgrid(0:0.2:2,0:0.2:2); u = sin(x-y)^2; v = cos(x+y)^2; figure quiver(x,y,u,v)