Clear Filters
Clear Filters

Matlab Compiler and Unsupported Toolboxes

3 views (last 30 days)
Bugra Alp Nas
Bugra Alp Nas on 16 Apr 2019
Answered: Walter Roberson on 16 Apr 2019
Hey everybody,
My code has syms and sym lines. But they can't compiled. How can i fix them? Are there alternatives ?
Example:
syms x;
f = get(handles.edit1,'String');
k = str2double(get(handles.edit6,'String'));
f_1 = diff(sym(f));
f_2 = diff(sym(f_1));

Answers (1)

Walter Roberson
Walter Roberson on 16 Apr 2019
Mathworks does not provide any alternative to this.
There is a third-party symbolic toolbox written in C++ that could be called upon by using loadlibrary(). It is a fair bit different than MATLAB's toolbox .
If you were to restrict what kind of functions the user could enter, then you could do your own string parsing and differentiation. This is relatively easy for true polynomials; it is not at all easy for things like the generalized 2F1 functions.

Community Treasure Hunt

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

Start Hunting!