From: Ilker on
Hi everybody,
I'm trying to simulate a 3D patch antenna simulation in MATLAB.
But i have some errors and cant run the 3D graphic.

These are errors:

??? Error using ==> mesh at 69
Data dimensions must agree.

Error in ==> fdtdpatch at 374
mesh(X,Y,bz)

and these my last lines:

figure(1)
[X,Y] = meshgrid(1:1:JE);
mesh(X,Y,bz)
rect=get(gcf,'Position');
rect(1:2)=[0 0];
M=moviein(nsteps/2,gcf,rect);

my codes are long, so i decide to put last lines... if it necesseary, i can put all of them...

Help please.