<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/248682</link>
    <title>MATLAB Central Newsreader - undefined function or variable 'sym'</title>
    <description>Feed for thread: undefined function or variable 'sym'</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 09 Apr 2009 00:34:02 -0400</pubDate>
      <title>undefined function or variable 'sym'</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/248682#641515</link>
      <author>Montadar Taher</author>
      <description>Hi my friends,&lt;br&gt;
&lt;br&gt;
I did an integration between matlab and visual basic 6.0, i create the window in vb and did all the required code to run the window in a very good case. &lt;br&gt;
&lt;br&gt;
Also, in matlab, i create my function and i used the comtool to build it. After that i added it in the references of visual basic and the vb do call for the function in a good case.&lt;br&gt;
&lt;br&gt;
My problem, is that i received an error message in vb as ( undefined function or variable 'sym' ). in fact i never have such function or variable in my code (matlab and visual basic).&lt;br&gt;
&lt;br&gt;
can some body help me? &lt;br&gt;
&lt;br&gt;
Thank you in advance</description>
    </item>
    <item>
      <pubDate>Thu, 09 Apr 2009 00:40:03 -0400</pubDate>
      <title>Re: undefined function or variable 'sym'</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/248682#641516</link>
      <author>Montadar Taher</author>
      <description>by the way,&lt;br&gt;
&lt;br&gt;
when i run the function in matlab, it working very good.&lt;br&gt;
&lt;br&gt;
thank you&lt;br&gt;
&lt;br&gt;
&quot;Montadar Taher&quot; &amp;lt;muntather_moto@yahoo.com&amp;gt; wrote in message &amp;lt;grjfpq$n1a$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi my friends,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I did an integration between matlab and visual basic 6.0, i create the window in vb and did all the required code to run the window in a very good case. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Also, in matlab, i create my function and i used the comtool to build it. After that i added it in the references of visual basic and the vb do call for the function in a good case.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; My problem, is that i received an error message in vb as ( undefined function or variable 'sym' ). in fact i never have such function or variable in my code (matlab and visual basic).&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; can some body help me? &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thank you in advance</description>
    </item>
    <item>
      <pubDate>Thu, 09 Apr 2009 03:15:57 -0400</pubDate>
      <title>Re: undefined function or variable 'sym'</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/248682#641534</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Montadar Taher&quot; &amp;lt;muntather_moto@yahoo.com&amp;gt; wrote in message &lt;br&gt;
news:grjfpq$n1a$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; Hi my friends,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I did an integration between matlab and visual basic 6.0, i create the &lt;br&gt;
&amp;gt; window in vb and did all the required code to run the window in a very &lt;br&gt;
&amp;gt; good case.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Also, in matlab, i create my function and i used the comtool to build it. &lt;br&gt;
&amp;gt; After that i added it in the references of visual basic and the vb do call &lt;br&gt;
&amp;gt; for the function in a good case.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; My problem, is that i received an error message in vb as ( undefined &lt;br&gt;
&amp;gt; function or variable 'sym' ). in fact i never have such function or &lt;br&gt;
&amp;gt; variable in my code (matlab and visual basic).&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; can some body help me?&lt;br&gt;
&lt;br&gt;
Symbolic Math Toolbox (which is the toolbox of which SYM is part) is not &lt;br&gt;
supported for use with MATLAB Compiler and will not work in a compiled &lt;br&gt;
application.&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.mathworks.com/products/compiler/compiler_support.html&quot;&gt;http://www.mathworks.com/products/compiler/compiler_support.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
    <item>
      <pubDate>Thu, 09 Apr 2009 03:21:32 -0400</pubDate>
      <title>Re: undefined function or variable 'sym'</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/248682#641537</link>
      <author>Nasser Abbasi</author>
      <description>&lt;br&gt;
&quot;Steven Lord&quot; &amp;lt;slord@mathworks.com&amp;gt; wrote in message &lt;br&gt;
news:grjp88$1o3$1@fred.mathworks.com...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &quot;Montadar Taher&quot; &amp;lt;muntather_moto@yahoo.com&amp;gt; wrote in message&lt;br&gt;
&lt;br&gt;
&amp;gt;in fact i never have such function or&lt;br&gt;
&amp;gt;&amp;gt; variable in my code (matlab and visual basic).&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Symbolic Math Toolbox (which is the toolbox of which SYM is part) is not &lt;br&gt;
&amp;gt; supported for use with MATLAB Compiler and will not work in a compiled &lt;br&gt;
&amp;gt; application.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://www.mathworks.com/products/compiler/compiler_support.html&quot;&gt;http://www.mathworks.com/products/compiler/compiler_support.html&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt; Steve Lord&lt;br&gt;
&amp;gt; slord@mathworks.com&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
Hello Steve;&lt;br&gt;
&lt;br&gt;
If someone is not using syms in their maltab m files (as the OP says), how &lt;br&gt;
why would the symbolic toolbox be involved? What you said, was my first &lt;br&gt;
immediate reaction to the OP question, but then saw that he said he does not &lt;br&gt;
use symbolic toolbox.&lt;br&gt;
&lt;br&gt;
--Nasser </description>
    </item>
    <item>
      <pubDate>Thu, 09 Apr 2009 14:06:36 -0400</pubDate>
      <title>Re: undefined function or variable 'sym'</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/248682#641659</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Nasser Abbasi&quot; &amp;lt;nma@12000.org&amp;gt; wrote in message &lt;br&gt;
news:XQdDl.13787$hc1.1273@flpi150.ffdc.sbc.com...&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &quot;Steven Lord&quot; &amp;lt;slord@mathworks.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; news:grjp88$1o3$1@fred.mathworks.com...&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &quot;Montadar Taher&quot; &amp;lt;muntather_moto@yahoo.com&amp;gt; wrote in message&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;in fact i never have such function or&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; variable in my code (matlab and visual basic).&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Symbolic Math Toolbox (which is the toolbox of which SYM is part) is not &lt;br&gt;
&amp;gt;&amp;gt; supported for use with MATLAB Compiler and will not work in a compiled &lt;br&gt;
&amp;gt;&amp;gt; application.&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; &lt;a href=&quot;http://www.mathworks.com/products/compiler/compiler_support.html&quot;&gt;http://www.mathworks.com/products/compiler/compiler_support.html&lt;/a&gt;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; -- &lt;br&gt;
&amp;gt;&amp;gt; Steve Lord&lt;br&gt;
&amp;gt;&amp;gt; slord@mathworks.com&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Hello Steve;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; If someone is not using syms in their maltab m files (as the OP says), how &lt;br&gt;
&amp;gt; why would the symbolic toolbox be involved? What you said, was my first &lt;br&gt;
&amp;gt; immediate reaction to the OP question, but then saw that he said he does &lt;br&gt;
&amp;gt; not use symbolic toolbox.&lt;br&gt;
&lt;br&gt;
You're right, I skipped over that when I was reading the OP's question. &lt;br&gt;
However, if they're receiving that message, then I suspect that either &lt;br&gt;
they're calling SYM or SYMS but don't know it, or they're calling another &lt;br&gt;
function (perhaps one written by someone else) that uses SYM or SYMS without &lt;br&gt;
their knowledge.&lt;br&gt;
&lt;br&gt;
Montadar, run your code inside MATLAB using the Profiler (see HELP PROFILE) &lt;br&gt;
and look for any instances of SYM in the Profile report -- that should show &lt;br&gt;
you if your code uses Symbolic Math Toolbox without you realizing it and &lt;br&gt;
will show you where the dependency occurs.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
    <item>
      <pubDate>Fri, 10 Apr 2009 20:21:01 -0400</pubDate>
      <title>Re: undefined function or variable 'sym'</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/248682#641907</link>
      <author>Montadar Taher</author>
      <description>Yes Friend,&lt;br&gt;
&lt;br&gt;
i did the profile command and i found out that the sym was called many times as follows;&lt;br&gt;
Function Name	Calls	Total Time	Self Time*	Total Time Plot&lt;br&gt;
(dark band = self time)&lt;br&gt;
sym.maple	1770	6.433 s	0.448 s	&lt;br&gt;
maple	3540	5.218 s	0.752 s	&lt;br&gt;
maplemex (MEX-function)	3559	4.225 s	4.185 s	&lt;br&gt;
sym.cosint	885	4.152 s	0.042 s	&lt;br&gt;
sym.double	885	2.666 s	0.138 s	&lt;br&gt;
sym.sym	3540	2.621 s	0.278 s		&lt;br&gt;
sym.sym&amp;gt;symr	1770	1.315 s	0.225 s	&lt;br&gt;
sym.sym&amp;gt;char2sym	1770	1.028 s	0.328 s	&lt;br&gt;
rat	2653	0.867 s	0.867 s	&lt;br&gt;
double.superiorfloat	71604	0.696 s	0.696 s		&lt;br&gt;
fliplr	28320	0.295 s	0.295 s	&lt;br&gt;
int2str	2700	0.183 s	0.183 s	&lt;br&gt;
sym.char	5310	0.171 s	0.171 s	&lt;br&gt;
waitbar	25	0.166 s	0.160 s	&lt;br&gt;
sym.sym&amp;gt;symfl	883	0.149 s	0.028 s	&lt;br&gt;
sym.sym&amp;gt;trim	1770	0.100 s	0.046 s	&lt;br&gt;
log10	12092	0.092 s	0.092 s	&lt;br&gt;
axis	9	0.079 s	0.061 s	&lt;br&gt;
str2num	885	0.075 s	0.042 s	&lt;br&gt;
newplot	32	0.071 s	0.007 s	&lt;br&gt;
newplot&amp;gt;ObserveAxesNextPlot	32	0.056 s	0.002 s	&lt;br&gt;
graphics\private\clo	8	0.054 s	0.016 s	&lt;br&gt;
cla	8	0.054 s	0.000 s	&lt;br&gt;
symbolic\private\putenvmaple (MEX-function)	1	0.050 s	0.050 s	&lt;br&gt;
sym.double&amp;gt;map2mat	885	0.045 s	0.045 s		&lt;br&gt;
setdiff	16	0.038 s	0.023 s	&lt;br&gt;
close	1	0.035 s	0.005 s	&lt;br&gt;
str2num&amp;gt;protected_conversion	885	0.033 s	0.033 s	&lt;br&gt;
ismember	9	0.030 s	0.030 s	&lt;br&gt;
close&amp;gt;request_close	1	0.030 s	0.007 s	&lt;br&gt;
title	6	0.023 s	0.018 s	&lt;br&gt;
close&amp;gt;request_close_helper	2	0.021 s	0.006 s	&lt;br&gt;
view	3	0.016 s	0.014 s	&lt;br&gt;
axis&amp;gt;LocSetEqual	3	0.015 s	0.015 s	&lt;br&gt;
ylabel	10	0.013 s	0.010 s	&lt;br&gt;
axescheck	29	0.013 s	0.013 s	&lt;br&gt;
xlabel	10	0.012 s	0.009 s	&lt;br&gt;
num2str	10	0.011 s	0.008 s	&lt;br&gt;
hold	3	0.008 s	0.006 s	&lt;br&gt;
figureToolbarCreateFcn	8	0.006 s	0.002 s	&lt;br&gt;
grid	5	0.005 s	0.005 s	&lt;br&gt;
xlim	5	0.005 s	0.005 s	&lt;br&gt;
opaque.char	8	0.004 s	0.004 s	&lt;br&gt;
angle	1512	0.003 s	0.003 s	&lt;br&gt;
colormap	1	0.003 s	0.003 s	&lt;br&gt;
ishold	6	0.003 s	0.003 s	&lt;br&gt;
gcf	75	0.003 s	0.003 s	&lt;br&gt;
iscellstr	24	0.003 s	0.003 s	&lt;br&gt;
newplot&amp;gt;ObserveFigureNextPlot	32	0.003 s	0.003 s	&lt;br&gt;
axis&amp;gt;LocSetLimits	3	0.003 s	0.003 s	&lt;br&gt;
FindST	1	0.002 s	0.002 s	&lt;br&gt;
gca	71	0.002 s	0.002 s	&lt;br&gt;
gcbf	2	0.002 s	0.000 s	&lt;br&gt;
gcbo	2	0.002 s	0.002 s	&lt;br&gt;
closereq	1	0.002 s	0.000 s	&lt;br&gt;
view&amp;gt;ViewCore	3	0.002 s	0.002 s	&lt;br&gt;
isunix	59	0 s	0.000 s	&lt;br&gt;
ispc	1	0 s	0.000 s	&lt;br&gt;
filesep	1	0 s	0.000 s	&lt;br&gt;
initprintexporttemplate	9	0 s	0.000 s	&lt;br&gt;
close&amp;gt;checkfigs	2	0 s	0.000 s	&lt;br&gt;
usejava	8	0 s	0.000 s	&lt;br&gt;
graphics\private\clo&amp;gt;find_kids	8	0 s	0.000 s	&lt;br&gt;
findall	8	0 s	0.000 s	&lt;br&gt;
view&amp;gt;isAxesHandle	3	0 s	0.000 s	&lt;br&gt;
axis&amp;gt;allAxes	9	0 s	0.000 s&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
now please help me to solve the problem, i need to do my program with visual basic 6, please help</description>
    </item>
    <item>
      <pubDate>Fri, 10 Apr 2009 20:49:15 -0400</pubDate>
      <title>Re: undefined function or variable 'sym'</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/248682#641912</link>
      <author>Steven Lord</author>
      <description>&lt;br&gt;
&quot;Montadar Taher&quot; &amp;lt;muntather_moto@yahoo.com&amp;gt; wrote in message &lt;br&gt;
news:gro9nd$kan$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; Yes Friend,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; i did the profile command and i found out that the sym was called many &lt;br&gt;
&amp;gt; times as follows;&lt;br&gt;
&lt;br&gt;
*snip profile output*&lt;br&gt;
&lt;br&gt;
&amp;gt; now please help me to solve the problem, i need to do my program with &lt;br&gt;
&amp;gt; visual basic 6, please help&lt;br&gt;
&lt;br&gt;
As I said before, Symbolic Math Toolbox and SYM are not available for use &lt;br&gt;
with MATLAB Compiler, which also means it won't work with any of the &lt;br&gt;
deployment products that depend upon MATLAB Compiler.  You can't deploy &lt;br&gt;
M-files that use SYM objects.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com </description>
    </item>
    <item>
      <pubDate>Fri, 10 Apr 2009 21:04:01 -0400</pubDate>
      <title>Re: undefined function or variable 'sym'</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/248682#641915</link>
      <author>Montadar Taher</author>
      <description>&quot;Steven Lord&quot; &amp;lt;slord@mathworks.com&amp;gt; wrote in message &amp;lt;grobb4$81q$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &quot;Montadar Taher&quot; &amp;lt;muntather_moto@yahoo.com&amp;gt; wrote in message &lt;br&gt;
&amp;gt; news:gro9nd$kan$1@fred.mathworks.com...&lt;br&gt;
&amp;gt; &amp;gt; Yes Friend,&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; i did the profile command and i found out that the sym was called many &lt;br&gt;
&amp;gt; &amp;gt; times as follows;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; *snip profile output*&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; now please help me to solve the problem, i need to do my program with &lt;br&gt;
&amp;gt; &amp;gt; visual basic 6, please help&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; As I said before, Symbolic Math Toolbox and SYM are not available for use &lt;br&gt;
&amp;gt; with MATLAB Compiler, which also means it won't work with any of the &lt;br&gt;
&amp;gt; deployment products that depend upon MATLAB Compiler.  You can't deploy &lt;br&gt;
&amp;gt; M-files that use SYM objects.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; -- &lt;br&gt;
&amp;gt; Steve Lord&lt;br&gt;
&amp;gt; slord@mathworks.com &lt;br&gt;
&amp;gt; &lt;br&gt;
Thank you</description>
    </item>
  </channel>
</rss>

