Matlab Script:
>> x = -5-8i;y=10-5i;
>> x*y
ans =
-90.0000 -55.0000i
>> abs(x*y)
ans =
105.4751
>> angle(x*y)
ans =
-2.5930
>> x/y
ans =
-0.0800 - 0.8400i
>> abs(x/y)
ans =
0.8438
>> angle(x/y)
ans =
-1.6657
>> angle(5+8i)
ans =
1.0122
>> angle(-5+8i)
ans =
2.1294
>> angle(5-8i)
ans =
-1.0122
>> angle(-5-8i)
ans =
-2.1294
>> x = 2
x =
2
>> (exp(x)-exp(-x))/2
ans =
3.6269
>> sinh(x)
ans =
3.6269
>> x = 2.5
x =
2.5000
>> (exp(x)-exp(-x))/2
ans =
6.0502
>> sinh(x)
ans =
6.0502
>>
2.* Let x -5- 8i and y 10-5i. Use MATLAB to compute the following expressions. Hand-check...
Compute the following problems using Math Lab. Instructions: Answer All Questions using MATLAB commands. Question 1. Create a vector of the even whole numbers between 31 and 75. Question 2. Let x [2516] a. Add 16 to each element b. Add 3 to just the odd-index elcments c. Compute the square root of each element d. Compute the square of each element Question 3. Let x 13 268T and y [4 1 3 5] (NB. x and y should be...
MATLAB will return with an HTM Browser) giving the syntax, an example, and a thorough description of the function, including the algorithm employed Note that this will only work if you included documentation when MATLAB was installed on your computer, or if you have the documentation CD in the CD drive TLAB Lecture 1.22 ECE 309 Exercise Set 2 Do these problems individually, but check your answers as a pair. (Pairs to be-assigned-in-class-signature-required) 1 Find the angle, e, for the...
MATLAB HELP Solve this problem first by hand and then check your answers in MATLAB. Write the output of the following commands when executed sequentially (i.e. in the order shown, from top to bottom) in the MATLAB command window Expression ans logical a) (6 + 3) >= 8 < 1 11 false 4 > (2 + 9) 11 ~true <- (-2*0.5) 4 + (4 < 7) (3&2) 0) d) e) Given |x= [10, 2, 6, 0, -31: y=[9, 0, 2,...
of MATLAS CHAPTER + An Owens Use MATLAB to calculate 6X7)+70-145 48.2855) - 9 c27310* +60(14) Check your answers with a calculator Use MATLAB to compute the following expression 16- 16-12 c. 161-12 d. 642 More UAB expression 23 d. 1003 st and smalle lculations there low and under he calculate TLAB todo the te 7. What answer is produced by the following MATLAB a. 1004-1 1004-1/2 c. 100(-1/2) The functions realmax and realmin give the largest sible numbers that...
A particle's motion is described in Cartesian coordinates with the following expressions. x = 2t^2 + 5t + 6. y = 7ln (t) + 1, and t greaterthanorequalto 1 where x and y are in metres, and t is in seconds Consider the particle's motion at t = 1.97seconds. (a) What is the particle's speed, vat this instant? (b) What is the magnitude of the particle's acceleration, a at this instant? (c) What is the angle between the particle's acceleration...
Matlab help 1) Given the functions x1()= tu()-tuft-1) and X2(t)=10e-5,11(), do the following: 1. Plotx,(t) and x2(0) using MATLAB 2. Use MATLAB to find and plot x(0=x:@*.x2(t), where * denotes convolution. 3. Find x(t)=x;()*X2(1) by hand using Laplace transforms. 4. Plot the result of part 3 in MATLAB and compare it to that found in part 2. 2) Given the transfer function shown below, do the following: 1. Find the system's impulse response and plot it using MATLAB 2. Repeat...
Let X be a Gaussian r.v. with mean 5 and sigma 10. Let Y be an independent exponential r.v. with lambda 3. Let Z be an independent continuous uniform r.v. in the interval [-1,1]. a. (5) Compute E[X+Y+Z]. b. (5) Compute VAR[X+Y+Z].
3. Consider the vector field F(x, y) + 2y F dr, where C is the circle (r-2)2 +y2 = 1, oriented counterclock (a) Compute wise (Hint: use the FT of line integrals. We could not use it for the circle centered at the origin, but we can use the theorem for this circle. Why?) (b) Let 0 be the angle in polar coordinates for a point (x, y). Check that 0 is a potential function for F 3. Consider the...
-n ', S Let f(x,yZFz2_xy. Let v=<1,1,1>. Let point P=<2,1,3> a. Compute gradient of fx,y,z) b. If the contours are far apart, is the length of the gradient large or small? Answer: Explain! What MATLAB command is used to draw the gradient vectors? Answer: - c. Compute the directional derivative in the direction of v. d. Compute the equation of the tangent plane to f(x,y,z) at the point P. e. Use the chain rule to compute r if x t2,...