All entries of array except certain indices in octave/matlab
Posted on Wed 07 December 2011 in Misc • Tagged with Matlab, octave
In Octave or Matlab, some times one needs to eliminate certain elements in an array.
For example, if
1 | |
and suppose I want to create a matrix "b" such that it has all the elements of "a" except 20 and 40. This can …
Continue reading

, where [tex]\hat{r}[/tex] is the position vector, [tex] \omega [/tex] is the frequency of dipole oscillation, [tex]\textbf{p}[/tex] is the dipole moment. The two terms in the electric field consists of 1) near field (area near …