Search for question
Question

The electric force (F) due to two point charges(Q) with distance between the two charges(r) is: F=\frac{1}{4 \pi \varepsilon_{0}} \frac{Q^{2}}{r^{2}} \text { Where: } \frac{1}{4 \pi \varepsilon_{0}}=9 \times 10^{9}\left(\mathrm{~N} \cdot

\mathrm{m}^{2} / \mathrm{C}^{2}\right) Generate a Matlab Script to calculate and plot the electric force (E) versus the distance (r). the distance range is from 0 to 7 m with 0.05 m intervals Request the user to enter the value of the point charge, Q Generate the distance vector, r, as explained above and define (ɛn) • Compute the electric force vector (F) Display the message: "F =" followed by the values of F Plot the computed F values v.s. the corresponding distance values, r. o Ensure that your plot is suitable for technical presentation, Provide a descriptive title of your plot, Label your x and y axes (with units), Change the color of the line to red color.

Fig: 1

Fig: 2

Fig: 3

Fig: 4

Fig: 5

Fig: 6

Fig: 7

Fig: 8

Fig: 9

Fig: 10

Fig: 11