Hello Pals,
I have been studying the behavior of the potential in an electric dipole aligned to the Cartesian coordinates (x,y,z). These equations were obtained from said derivation:
Now, I am not an avid MATLAB user and I need a code that implements each of these cases into functions that can be input to MATLAB in the Y-Z (90deg) plane. I know that the command 'gradient' is used to compute the electric field and that 'contour' and 'quiver' are used to obtain plots of the equipotential lines and electric field vectors. Can anybody help me produce the desired task? I suck at matlab.
I have been studying the behavior of the potential in an electric dipole aligned to the Cartesian coordinates (x,y,z). These equations were obtained from said derivation:
Now, I am not an avid MATLAB user and I need a code that implements each of these cases into functions that can be input to MATLAB in the Y-Z (90deg) plane. I know that the command 'gradient' is used to compute the electric field and that 'contour' and 'quiver' are used to obtain plots of the equipotential lines and electric field vectors. Can anybody help me produce the desired task? I suck at matlab.