Matlab Compiler and Unsupported Toolboxes
Afficher commentaires plus anciens
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));
Réponses (1)
Walter Roberson
le 16 Avr 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.
Catégories
En savoir plus sur Code Performance dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!