From: Meir on
I’m trying to create a sub 3D-matrix within a bigger 3D-Matrix.
I have no problem to choose a cubical or parallelepiped volume but I can’t find a way to create a spherical one.
I know that a matrix in Matlab has to be cubical or parallelepiped so I’m trying to create a cubical sub-matrix and chose inside it a spherical volume with the original values from the “mother matrix” while all the other values around it (felling the rest of the sub-matrix) are zeros or NaNs.

Does someone have an idea?
 | 
Pages: 1
Prev: Mixed variable optimization
Next: Vector * Matrix