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.
From: us on
"Ilker " <ilkerus(a)msn.com> wrote in message <hrkkpr$hk$1(a)fred.mathworks.com>...
> 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.

a hint:

put a KEYBOARD statement before your MESH(...) command
then, check the size of X,Y, and BZ, eg
whos X Y bz;

us
From: Ilker on

> a hint:
>
> put a KEYBOARD statement before your MESH(...) command
> then, check the size of X,Y, and BZ, eg
> whos X Y bz;
>
> us

thanks.

but i am new in MATLAB. how can i do it exactly ? or can you copy here the right codes?
From: us on
"Ilker " <ilkerus(a)msn.com> wrote in message <hrkkog$r9h$1(a)fred.mathworks.com>...
> 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.

don't repeat posts...

http://www.mathworks.com/matlabcentral/newsreader/view_thread/281083

us
From: us on
"Ilker " <ilkerus(a)msn.com> wrote in message <hrkn31$pp5$1(a)fred.mathworks.com>...
>
> > a hint:
> >
> > put a KEYBOARD statement before your MESH(...) command
> > then, check the size of X,Y, and BZ, eg
> > whos X Y bz;
> >
> > us
>
> thanks.
>
> but i am new in MATLAB. how can i do it exactly ? or can you copy here the right codes?

well...
EDIT your file
then put the statement KEYBOARD right before the line with the command MESH...

us