Using Matlab Write a script file called bestlocation for a c
Using Matlab Write a script file called bestlocation for a construction company which would allow their engineer to input the coordinates of n different points where construction sites are located (within a grid of size 10x10). Your program should then determine the location of a central distribution facility such that it entails the minimum amount of driving for the truck carrying material from the distribution center to the construction sites. Assume that the truck always picks up material from the distribution facility and makes just one trip to each of the sites during a working day. To make life easy, you may assume that you only need to locate the distribution facility on one of the 10x10 grid points. Test your program with the following data for the site locations: (2,9), (4,7), (1,6), (8,10), and (6,8)
Solution
Equipotential lines area unit like contour lines on a map that trace lines of equal altitude. during this case the \"altitude\" is electrical potential or voltage. Equipotential lines area unit perpetually perpendicular to the electrical field. In 3 dimensions, the lines kind equipotential surfaces. Movement on associate equipotential surface needs no work as a result of such movement is usually perpendicular to the electrical field.
The electric potential of some extent charge is given by
so that the radius r determines the potential. The equipotential lines area unit so circles associated a sphere targeted on the charge is an equipotential surface. The dotted lines illustrate the scaling of voltage at equal increments - the equipotential lines get additional apart with increasing r.
Equipotential lines: dipole
The electric potential of a dipole show parity concerning the middle purpose of the dipole. they\'re all over perpendicular to the electrical field lines.
For parallel conducting plates like those in an exceedingly electrical device, the electrical field lines area unit perpendicular to the plates and also the equipotential lines area unit parallel to the plates.
