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).


Homework Answers

Answer #1

vector field is drawn using the quiver command, explanation for each command is given in the code itself.

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:

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
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
Using MATLAB, plot the vector field ? ⃗ = y2? ̂ − ?? ̂           ?? ?ℎ?...
Using MATLAB, plot the vector field ? ⃗ = y2? ̂ − ?? ̂           ?? ?ℎ? ?????? − 2 < ? < +2 ??? − 2 < ? < +2 Find the magnitude of the vector field at the point (?0,?0) = (3,2).
"Allowed to use any platform" > Octave desktop app, Octave Online, MATLAB App, or MATLAB Online....
"Allowed to use any platform" > Octave desktop app, Octave Online, MATLAB App, or MATLAB Online. Create a script or a function to solve the following problem. The irrational number π can be (indirectly) approximated by an infinite series, that is π4=1-13+15-17+… The script or function should feature the following: the user can input the number of terms of the infinite series n , compute the sum of n terms of the infinite series, compute the absolute difference (error) of...
The work should be done using MATLAB 4. Vector Fields Show the vector fields for the...
The work should be done using MATLAB 4. Vector Fields Show the vector fields for the following (on separate graphs) and include these graphs in your project: F = < -y, x> G = < x,y> H = < 0, x> K = < 2x-y, 0> L = <y,ex>
For the system given by the difference equation below: Y(n) – (3/2).Y(n-1) – Y(n-2) = -(5/2)....
For the system given by the difference equation below: Y(n) – (3/2).Y(n-1) – Y(n-2) = -(5/2). X(n-1) Find the transfer function H(z). You will need to do this manually. Find the poles and zeros of H(z). You can do this manually or use MATLAB. Plot the poles and zeros in MATLAB Is the system stable? Plot the impulse response of the system using MATLAB Plot the Step Response of the system using MATLAB Plot the frequency response of the system...
14a. Find the gradient vector field of ?(?, ?, ?) = (? ^2)(?)(? ^(?/z)) 14b An...
14a. Find the gradient vector field of ?(?, ?, ?) = (? ^2)(?)(? ^(?/z)) 14b An object with mass m moves with position function ?⃗(?) = ? sin(?) ?̂+ ? cos(?) ?̂+ ? ?̂?, 0 ≤ ? ≤ ?/2. Find the work done on the object during this time period. Calculus 3 question. Please help.
Using Matlab to solve the problem below Given X=[-2 -1 0 1 2] Y=[1.5 3.2 4.5...
Using Matlab to solve the problem below Given X=[-2 -1 0 1 2] Y=[1.5 3.2 4.5 3.4 2] a). Plot a scatter plot of the data b). Determine the coefficients of the polynomial ?0 + ?1? + ?2?2 which best fits the data c). Plot this function on the same plot as in part ‘a’. USE MATLAB CODE ONLY! USE MATLAB CODE ONLY! THANK YOU
Using for loop and if statement, write a MATLAB code to plot a graph for x(t)...
Using for loop and if statement, write a MATLAB code to plot a graph for x(t) as a function of time t in the range 0 to 12 in increment of 0.01 ?(?) = 1: 0 ≤ ? ≤ 1 2? − 1 1 ≤ ? ≤ 2 3 2 ≤ ? ≤ 3 −2.5? + 10.5 3 ≤ ? ≤ 5 −2 5 ≤ ? ≤ 6 4/3 ? − 10 6 ≤ ? ≤ 9 2 9 ≤...
Matlab Create plot of the following density functions using x values between -10 and 10 with...
Matlab Create plot of the following density functions using x values between -10 and 10 with an increment of 0.02 -Normal cumulative distribution function with mu=1, sigma=1, mu=0, sigma=2, mu=0,sigma=1/2
Find the curl and the divergence of the vector field. ?(?,?,?) = 2?^2? + (4?y +...
Find the curl and the divergence of the vector field. ?(?,?,?) = 2?^2? + (4?y + 4?^2^?)? + 8??^2^??
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT