I have scalar Electric Fields in a cube of 256*256*256 (1 mm steps ) and I am trying to calculate voltage at each point according to a reference point. to do so:
I need to do the line integral along each line connecting each point in the cube to the reference point. This numerically means summing all electric field scalars falling on that line.
any suggestions on how to do this in matlab
Thanks