I asked this question to help me understand what is going on in one of Maxwell's equations. I am happy with following through the maths on paper now, but would like to use MATLAB to take it one step further, and actually DO the maths on a computer. This is where I really struggle, because most of what I have used computers for is curve fitting, numeric or symbolic integration, and data processing.
So in this case, I have the equation:
$$ \nabla \times E = -\frac{\partial \textbf{B}}{\partial t} $$
and would like to DO this equation in MATLAB, in full 3D, using the proper term for the electric and magnetic counterparts:
$$ E \left( r, t \right) = E_{0} \exp \left[ i \left( k_{0} \cdot r - \omega_{0} t \right) \right] $$
to eventually obtain the canonical diagram of an electromagnetic wave (thank you THIS thread for this pic):
Now I am pretty sure it has something to do with meshgrid()
and MATLAB's curl()
function but have no idea where to start. I hope this question makes sense. Thanks