hi sir,
i have electric field matrix with myself. each value in matrix defines some magnitude at a particular point in the spatial location.
now i need to find voltage at particular point.
for that i need to find integral of electric field vector.
so how have to define integration in matlab for the above problem.
electric field in 2 dimensional. voltage is also in 2 dimensional.
You also need the field direction. The magnitude alone, does not specify the field completely.
Added after 3 minutes:
By the way, if have the field completely, you can compute the voltage difference regardless of the integration path because of we know that the integration of E on a close path is zero. Therefore, just compute the integration along horizontal and vertical lines to get to any point. That fits your matrix rows and coloumns.