Is there an alternate for sym function in matlab 2012b?

13 views (last 30 days)
I can't find symbolic math toolbox at all in this version. Is there any other function which serves the same purpose or can anyone tell me how to construct your own sym function as the last resort?

Answers (1)

Walter Roberson
Walter Roberson on 24 May 2013
sym is part of the Symbolic Toolbox, which must be purchased separately for all R2012b licenses.
It is possible that previously you were working with Student Version licenses, which include the Symbolic Toolbox as part of the package. Student Version is not available for R2012b. All Student Version releases in releases named after years have been for the "a" (beginning of year) releases, with the exception of R2008b.
If you do not have "sym" then you are also missing the rest of the Symbolic Toolbox. "sym" is of no value without that toolbox, but in order for us to suggest an appropriate replacement we would need to know what kinds of symbolic operations you need to do.
If you happen to have a full Maple release that dates from roughly 2006 or later, then it is possible to install a linkage between MATLAB and Maple so that "sym" in MATLAB will create Maple objects. The capacities of that MATLAB / Maple interface are a bit different than the MATLAB Symbolic Toolbox; a fair number of operations will respond nearly the same, but the interface is closer to what MuPAD was like before R2011b.
If you are doing integer computations in extended precision then John D'Errico's FEX contribution "vpi" might be usable.
  5 Comments
Walter Roberson
Walter Roberson on 24 May 2013
For integers, vpi is the appropriate. For what is being done here in this question, neither vpi nor hpf are suitable.
Sushant  Kumar
Sushant Kumar on 27 May 2013
myfunction1 looks like this.... function r1 = myfunction1(x,y,z) %syms x y z f = zeros(10000,1); for q1 = 1:10000 f(q1,1) = x * sin((2*3.14*y*(q1/10000000)) + z); end
r1 = diff(f,x);
end
similar is the case for myfunction2 and 3 except for the fact that they are diffrentiated wrt y and z. Now, value of x,y and z is passed to this function in every iteration as described in the main programme above. The problem is, either i have to include the line "syms x,y,z" or it says "undefined input arg. x,y,z". Need an alternate for syms.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!