Question: Submit a script and function files to blackboard to solve the following problems: 1. The electric field of a conducting sphere of radius R with

Submit a script and function files to blackboard to solve the following problems: 1. The electric field of a conducting sphere of radius R with charge Q is given by EQ,r) = Q(t) 41 or(t)2 Write a function named E_sphere with inputs r (1xN array) and Q (1xN array), and output E (1xN array), that implements this equation. Use the value to = 8.85 x 10-12 F/m. Test your function by writing a script file that creates the following inputs and calculates the output of the function. Plot the electric field in a single figure, using time as the independent axis, for both data sets (check subplot). For data set 1, use Q(t) as 12 linearly spaced values from 1.3 to 1.5 meters. For data set 2, use Q(t) as 14 linearly spaced values from 1.3 to 1.7 meters. Data Set 1 t (sec) r(t) (m) 1 0.05 2 0.1 0.15 4 0.2 5 0.25 6 0.3 7 0.35 8 0.4 9 0.45 10 0.5 11 0.55 12 0.6 Data Set 2 t (sec) r(t) (m) 1 0.76 2 0.77 3 0.78 4 0.79 5 0.80 6 0.81 7 0.82 8 0.83 9 0.84 10 0.85 11 0.86 12 0.87 13 0.88 14 0.89 Submit a script and function files to blackboard to solve the following problems: 1. The electric field of a conducting sphere of radius R with charge Q is given by EQ,r) = Q(t) 41 or(t)2 Write a function named E_sphere with inputs r (1xN array) and Q (1xN array), and output E (1xN array), that implements this equation. Use the value to = 8.85 x 10-12 F/m. Test your function by writing a script file that creates the following inputs and calculates the output of the function. Plot the electric field in a single figure, using time as the independent axis, for both data sets (check subplot). For data set 1, use Q(t) as 12 linearly spaced values from 1.3 to 1.5 meters. For data set 2, use Q(t) as 14 linearly spaced values from 1.3 to 1.7 meters. Data Set 1 t (sec) r(t) (m) 1 0.05 2 0.1 0.15 4 0.2 5 0.25 6 0.3 7 0.35 8 0.4 9 0.45 10 0.5 11 0.55 12 0.6 Data Set 2 t (sec) r(t) (m) 1 0.76 2 0.77 3 0.78 4 0.79 5 0.80 6 0.81 7 0.82 8 0.83 9 0.84 10 0.85 11 0.86 12 0.87 13 0.88 14 0.89
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
