Matlab Compiler and Unsupported Toolboxes
Show older comments
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
on 16 Apr 2019
0 votes
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.
Categories
Find more on Code Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!