Java runtime error because of SYMS variables..
1 view (last 30 days)
Show older comments
Hello,
I have a functions follow as
function[out1,out2,..]=myProject(in1,in2,in3...)
....
syms Hs Ht; // HERE LİNE 21
CT=C0*(C1+C2*((1/Hs)+(1/Ht)+C3))+C7*(Hs^4.1+((Hs^5.1)/Ht)+C3*(Hs^5.1))+C8*(((Ht^3.5)/Hs)+(Ht^2.5)+C3*(Ht^3.5));
F1=diff(CT,Hs);
F2=diff(CT,Ht);
....
end
after that I used this function in my java program.
MyMatlabClass myObj = new MyMatlabClass();
outObj=myObj.MyProject(27,in1,in2,in3,...);
everything as great as here.But when program run i took a error as follows..
Error in MyProject (line:21)
:S Actually i do not understand Why program has failed? I'm waiting your solutions..
Thanks..
2 Comments
Accepted Answer
Walter Roberson
on 12 Feb 2013
From java... Is this using the Java Builder project? If so then the problem is that the symbolic toolbox cannot be compiled, and so cannot be used from the NET Builder or JAVA Builder products.
12 Comments
Malcolm Lidierth
on 15 Feb 2013
Emre "creating a new session every time" - I'm rusty on matlabcontrol, but I recall that is programmer-selectable.
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!