Question

Matlab

John's Grades in 6 different courses are 48, 58, 96, 79, 57 and 88. Amy's grades in these courses are 95, 52, 82, 74, 76 and 58. Write a SINGLE script and run it to answer the following questions.

i) To display Amy's grades which are 82.

j) To display Amy's grade which are not less than 60 nor greater than 80.

k) To display Amy's grade which are not between 50 and 80.

e) To display Amy's grades which are less than or equal to 80.

h) How many courses has Amy gotten grades exactly equal to 82?

c) How many courses has Amy gotten better grades than John?

d) How courses has John gotten grades greater than 60

a) To find and display the average of John's and Amy's grades.

b) To find which person (John or Amy) got better grades.

f) How many courses have both Amy and John gotten same grades?

h) How many courses has Amy gotten grades exactly equal to 82?

g) To display the grades in item d  Verified

### Question 44520  Matlab

10.An infinite length line carries current I in the +directional on the z-axis, and this is surrounded by an infinite length cylindrical shell (centered about the z-axis)of radius a carrying the return current I in the -azdirection as a surface current. Find expressions for the magnetic field intensity everywhere. If the current is 1.0A and the radius a is 2.0 cm, plot the magnitude of H versus radial distance from the z-axis from 0.1 cm to 4 cm.

### Question 44519  Matlab

9. An infinitesimally thin metallic cylindrical shell of radius4.0 cm is centered on the z-axis and carries an evenly distributed current of 10.0 mA in the +az direction. (a)Determine the value of the surface current density on the
conductive shell and (b) plot H as a function of radial distance from the z-axis over the range 0 < 22< 12 cm.

### Question 44518  Matlab

8. Given a 3.0 mm radius solid wire centered on the z-axis with an evenly distributed 2.0 amps of current in the +azdirection, plot the magnetic field intensity H versus radial distance from the z-axis over the range 0 <O< 9 mm.

### Question 44517  Matlab

7. How close do you have to be to the middle of a finite length of current-carrying line before it appears infinite in length? Consider Hf(0, a, 0) is the field for the finite line of length 2h centered on the z-axis, and that Hi(0, a, 0) is the field for an infinite length line of current on the z-axis.In both cases consider current I in the +az direction. Plot Hf/Hi vs h/a.

### Question 44516  Matlab

6. A thick-walled spherical shell, with inner radius 2.00 cm and outer radius 4.00 cm, has an evenly distributed 12.0nC charge. Plot Dr as a function of radial distance from the origin over the range 0 <r< 10 cm.

### Question 44515  Matlab

1. MATLAB: Suppose you have a segment of line charge of length 2L centered on the z-axis and having a charge distribution BL. Compare the electric field intensity at a point on the y-axis a distance d from the origin with the electric field at that point assuming the line charge is of infinite length. The ratio of E for the segment to E for the infinite line is to be plotted versus the ratio L/d usingMATLAB.

### Question 44514  Matlab

4. Given a 3.00 mm radius solid wire centered on the z-axis with an evenly distributed 2.00 coulombs of charge perimeter length of wire, plot the electric flux density DB versus radial distance from the z-axis over the range 0<<9 mm.

### Question 44513  Matlab

3. : MATLAB: Consider a sphere with charge density Bv =120 nC/m3 centered at the origin with a radius of 2.00 m.Now, remove the top half of the sphere, leaving a hemisphere below the x-y plane. Find the electric field intensity at the point P(8.00m,0.00,0.00). (Hint: seeMATLAB 2.4, and consider that your answer will now have two field components.)

### Question 44512  Matlab

2. MATLAB: Consider a rectangular volume with 0.00 < xs4.00 m, 0.00 < y< 5.00 m and -6.00 m < z< 0.00 with charge density Bv = 40.0 nC/m3. Find the electric field intensity at the point P(0 00 .0 00 20.0m)

### Question 44511  Matlab

1. MATLAB: Suppose you have a segment of line charge of length 2L centered on the z-axis and having a charge distribution BL. Compare the electric field intensity at a point on the y-axis a distance d from the origin with the electric field at that point assuming the line charge is of infinite length. The ratio of E for the segment to E for the infinite line is to be plotted versus the ratio L/d usingMATLAB.

### Submit query        