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

Homework Answers

Answer #1

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

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).
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).
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 ≤...
Curve-Fit Function USING MATLAB Using the top-down design approach, develop a MATLAB function A8P2RAlastname.m that reads...
Curve-Fit Function USING MATLAB Using the top-down design approach, develop a MATLAB function A8P2RAlastname.m that reads data from a file and performs regression analysis using polyfit and polyval. The function shall have the following features: The input arguments shall include the file name (string), a vector of integers for the degrees of polynomial fits to be determined, and an optional plot type specifier (‘m’ for multiple plots, ‘s’ for a single plot - default). The data files will be text...
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 MATLAB The range of an object shot at an angle θ (with respect to x-axis),...
Using MATLAB The range of an object shot at an angle θ (with respect to x-axis), with the initial velocity of V0 (in the absence of air resistance), is calculated by the following formula: range=(Vo^2/g)(sin(2theta)) where (0<=theta<=pi/2) And the trajectory of object is given by:     h=tan(theta).x-(g/2Vo^2*cos^2(theta)).x^2 .Where h is the height of the object at each x location and g = 9.81 m/s2. a) Using π/8 increment size for the angle and V0 = 10 m/s, plot the trajectories of...
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.
PLEASE USE MAT LAB ONLY. THANK YOU (a) Create and plot the signals listed below and...
PLEASE USE MAT LAB ONLY. THANK YOU (a) Create and plot the signals listed below and save your Matlab code in a script file. i) Cosine signal of frequency 100 Hz over the range [0,0.1] seconds and samples spaced 10^- 4 seconds apart with a phase of pi/2 and an amplitude of 1.   PLEASE USE MAT LAB ONLY. THANK YOU ii) A square wave that oscillates between 0 and 1 every five samples, plot 3 periods of the waveform. iii)...
Using Stoke's Thm, find the work done by the vector field F(x, y, z) = 〈z,...
Using Stoke's Thm, find the work done by the vector field F(x, y, z) = 〈z, x, y〉, that moves an object along the triangle with vertices P(1, 0, 0), Q(0, 1, 0), R(0, 0, 1), in a counterclockwise manner, starting and ending at P.
Using MatLab 2. Given the parametric equations x = t^3 - 3t, y = t^2-3: (a)...
Using MatLab 2. Given the parametric equations x = t^3 - 3t, y = t^2-3: (a) Find the points where the tangent line is horizontal or vertical (indicate which in a text line) (b) Plot the curve parametrized by these equations to confirm. (c) Note that the curve crosses itself at the origin. Find the equation of both tangent lines. (d) Find the length of the loop in the graph and the area enclosed by the loop. 3. Use what...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT