Unreadable operations when using symbolic functions
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
JAVIER
le 18 Déc 2023
Réponse apportée : madhan ravi
le 18 Déc 2023
Title. Basically everytime I work with symbolic functions or I try to evaluate them, I get answers like this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1571557/image.png)
Is there any way through I can solve this?
0 commentaires
Réponse acceptée
Plus de réponses (1)
Karl
le 18 Déc 2023
You can cast from symbolic values to numeric values, for example:
syms z
Gsymbolic = (5581285042669281*z^3)/9007199254740992 ...
+ (5581285042669281*z^2)/36028797018963968 ...
+ (2769712702424631*z)/2251799813685248;
symbolic_value = subs(Gsymbolic,z,1);
numeric_value = double(symbolic_value);
fprintf("symbolic_value = %s\nnumeric_value = %f\n", symbolic_value, numeric_value)
0 commentaires
Voir également
Catégories
En savoir plus sur Calculus dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!