Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Undefined function or method 'poly2sym' for input arguments of type 'double'

71 views
Skip to first unread message

zamia huang

unread,
Mar 25, 2007, 5:07:34 AM3/25/07
to
i countered a problem about poly2sym and mcc compiler, and i'll very
appreciate you if you can give me some comments.

I write a test function like this:
function a=test()
suffix=[1 2 3];
vfit=[1 2 2];
av_sym = poly2sym(suffix, 'v');
vt_sym = poly2sym(vfit, 't');
at_sym = compose(av_sym, vt_sym);
afit = sym2poly(at_sym);
a=afit;

I save it as test.m. And when i execute it using "test" in matlab
command window, it seems there is no problem at all.

BUT after i compile the .m file using "mcc -mv test.m", when i
execute the executeable file test.exe in WINDOWS command window, I
got an error message:
"??? Undefined function or method 'poly2sym' for input arguments of
type 'double'"

My environment:
MATLAB 2006b/Windows XP sp2
compiler: lcc

Is there anyone can test this problem and give me some comments??
Thanks a lot!

medal

unread,
Mar 25, 2007, 12:40:52 PM3/25/07
to

Is anyone please give me some tips?

us

unread,
Mar 25, 2007, 12:47:24 PM3/25/07
to
medal:
<SNIP a function won't compile...

a hint:

scrutinize this

<http://www.mathworks.com/products/compiler/compiler_support.html>

and look at the last sentence of this page

us

medal

unread,
Mar 25, 2007, 8:12:35 PM3/25/07
to

us,

Thanks very much, i think this is exactly the reason of th problem.

Now i have to find a way to use symbolic toolbox in a standalone
executable application.

thanks again.~

0 new messages