From: mario on
Hi everybody, I am new in this forum and i have a problem whit the function polybool.
I must use this function in an algoritm for the tracking of a target in a cellular network, but i have a problem.
When i use this function, also white example code in the help:

theta = linspace(0, 2*pi, 100);
x1 = cos(theta) - 0.5;
y1 = -sin(theta); % -sin(theta) to make a clockwise contour
x2 = x1 + 1;
y2 = y1;
[xa, ya] = polybool('union', x1, y1, x2, y2);

Matlab return an error:

??? attempt to reference field of non-structure array

Someone can help me? thanks a lot.
Sorry for the english...
From: Wayne King on
"mario " <hernanilbello(a)yahoo.com> wrote in message <hqpp4e$54f$1(a)fred.mathworks.com>...
> Hi everybody, I am new in this forum and i have a problem whit the function polybool.
> I must use this function in an algoritm for the tracking of a target in a cellular network, but i have a problem.
> When i use this function, also white example code in the help:
>
> theta = linspace(0, 2*pi, 100);
> x1 = cos(theta) - 0.5;
> y1 = -sin(theta); % -sin(theta) to make a clockwise contour
> x2 = x1 + 1;
> y2 = y1;
> [xa, ya] = polybool('union', x1, y1, x2, y2);
>
> Matlab return an error:
>
> ??? attempt to reference field of non-structure array
>
> Someone can help me? thanks a lot.
> Sorry for the english...

Hi Mario, what version of Matlab are you running? If you enter:

license('test','map_toolbox')

do you get a 1 returned?

I don't have any trouble running your example.

Wayne