im having trouble with the slice plots.
i have a 3D matrix of electric field which i want to plot in the x-y plans along the z axis. (the third dimension of the matrix is the field in different Z axis values)
x,y,z are with dimensions of 1X201, Eg are with dimensions of 201X201X201
This is my code:
xslice = ;
yslice = ;
zslice = [z(1),z(50),z(70),z(201)];
the result i get is black surfaces, (i need to see the field distribution in x-y plane in each surface).
what can be the problem? how can i fix this?
This is the result: