MATLAB: Charge simulation method

functionloopsmatrix

how can I choose points from the surface of a circle? how can I subtract each element of a matrix from the other elements of the same matrix?

Best Answer

f=[1 2 3];
g=bsxfun(@minus,f,f.')
The other question depends on how you plot it and how do you want to choose the point.
Related Question