Matlab Compiler and Unsupported Toolboxes
3 次查看(过去 30 天)
显示 更早的评论
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));
0 个评论
回答(1 个)
Walter Roberson
2019-4-16
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.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!