Matlab .net assembly symbolic toolbox

4 views (last 30 days)
Hi all,
Here is what I've done:
  1. Used Matlab>deploytool>.net assembly to create a dll
  2. Added reference to all the required files in C#
  3. Ran a program using a matlab test function for adding numbers which ran correctly
The problem I'm facing is with the symbolic toolbox of matlab. I wrote a simple function for solving two equations and return a logical value if there is an intersection between the curves.
function Range = MatCurveIntersection(Curve1,Curve2 )
c1 = sym(Curve1);
c2 = sym(Curve2);
%Solve the two equations
x=solve(c1-c2);
y=double(x);
%Check to see if the two curves intersect
Range=isreal(y)&(~isempty(y));
end
Now, when I run the C# program, i get an error: "undefined function or method 'sym' for input arguments of type 'char'"
Troubleshooting:
  1. The code runs correctly in Matlab
  2. Verified that the versions of Matlab and symbolic toolbox match
  3. Verified the existence of sym.m
I cannot figure out what the problem is. Help Please!

Accepted Answer

Ken Atwell
Ken Atwell on 13 Nov 2011
This doc page states that the Symbolic Math Toolbox cannot be embedded into a compiled application/assembly.
  1 Comment
Dipen
Dipen on 14 Nov 2011
Thanks, I figured that out today. Deploytool has an option for adding additional files and folders, but adding the symbolic toolbox folder doesnt change anything. As the page states, I guess its because of licensing issues

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!