Path: news.mathworks.com!not-for-mail
From: "Steven Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: undefined function or variable 'sym'
Date: Thu, 9 Apr 2009 10:06:36 -0400
Organization: The MathWorks, Inc.
Lines: 48
Message-ID: <grkvc6$7cs$1@fred.mathworks.com>
References: <grjfpq$n1a$1@fred.mathworks.com> <grjp88$1o3$1@fred.mathworks.com> <XQdDl.13787$hc1.1273@flpi150.ffdc.sbc.com>
Reply-To: "Steven Lord" <slord@mathworks.com>
NNTP-Posting-Host: lords.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1239285958 7580 144.212.105.187 (9 Apr 2009 14:05:58 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 9 Apr 2009 14:05:58 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
Xref: news.mathworks.com comp.soft-sys.matlab:531686



"Nasser Abbasi" <nma@12000.org> wrote in message 
news:XQdDl.13787$hc1.1273@flpi150.ffdc.sbc.com...
>
> "Steven Lord" <slord@mathworks.com> wrote in message 
> news:grjp88$1o3$1@fred.mathworks.com...
>>
>> "Montadar Taher" <muntather_moto@yahoo.com> wrote in message
>
>>in fact i never have such function or
>>> variable in my code (matlab and visual basic).
>>>
>
>>
>> Symbolic Math Toolbox (which is the toolbox of which SYM is part) is not 
>> supported for use with MATLAB Compiler and will not work in a compiled 
>> application.
>>
>> http://www.mathworks.com/products/compiler/compiler_support.html
>>
>> -- 
>> Steve Lord
>> slord@mathworks.com
>>
>
> Hello Steve;
>
> If someone is not using syms in their maltab m files (as the OP says), how 
> why would the symbolic toolbox be involved? What you said, was my first 
> immediate reaction to the OP question, but then saw that he said he does 
> not use symbolic toolbox.

You're right, I skipped over that when I was reading the OP's question. 
However, if they're receiving that message, then I suspect that either 
they're calling SYM or SYMS but don't know it, or they're calling another 
function (perhaps one written by someone else) that uses SYM or SYMS without 
their knowledge.

Montadar, run your code inside MATLAB using the Profiler (see HELP PROFILE) 
and look for any instances of SYM in the Profile report -- that should show 
you if your code uses Symbolic Math Toolbox without you realizing it and 
will show you where the dependency occurs.

-- 
Steve Lord
slord@mathworks.com