Question

# Using MATLAB/OCTAVE, plot the vector field ?⃗=?2?̂−??̂ ?? ?ℎ? ??????−2<?<+2 ???−2<?<+2 Find the magnitude of the...

Using MATLAB/OCTAVE, plot the vector field ?⃗=?2?̂−??̂ ?? ?ℎ? ??????−2<?<+2 ???−2<?<+2

Find the magnitude of the vector field at the point (?0,?0)=(3,2).

write the type of code used

plots produced by this code

derivation or calculation required to write this code

The vector field can be plotted using the quiver comment and the magnitude of the vector field is calculated at the last section of the command. code is explained in each line

code:

% initializing x values
clc; clear all;
x=linspace(-2,2,10);
% initializing y values
y=linspace(-2,2,10);
% creating mesh grid
[X,Y]=meshgrid(x,y);
% assigning components
u=Y.*Y; v=-X;
% ploting vector lines using quiver command
quiver(x,y,u,v)
xlabel('x')
ylabel('y')
% to find the value of magnitude vector fied at 3,2
x0=3;
y0=2;
A=sqrt((y0^(4))+(x0^(2)))

Output:

plot:

as the vector equation is given,

the magnitude will be

#### Earn Coins

Coins can be redeemed for fabulous gifts.

##### Need Online Homework Help?

Most questions answered within 1 hours.

##### Active Questions
• O2 molecules can dissociate to form O atoms by absorbing electromagnetic radiation. If it takes 498...
• According to the Air Transport Association of America, the average operating cost of an MD-80 jet...
• In gathering data for its pay policies, what product markets would a city’s hospital want to...
• You are a school psychologist interested in whether a new educational program, Go4It, improves SAT scores...
• PtSe2 monolayer is a 2-dimensional material that has a hexagonal crystal structure. a. Determine the unit...
• Does presentation methodology improve retention for remembered material? You know that the average number of concepts...