How to change the display format of a symbolic function?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Benjamin
le 14 Jan 2021
Réponse apportée : Chaitanya Mallela
le 4 Fév 2021
Hi dear all,
I have a symbolic function that will be generated as Y = (13500*X^(1229/500))/1000 (X is defined as syms), and I would like to have it as Y = 13.5X^2.458. The format function, or the vpa does not work for all the numbers of this symbolic function, and only re-write it as 13.5*X^(1229/500). is there any way that we be able to convert all numbers?
Thanks
0 commentaires
Réponse acceptée
Chaitanya Mallela
le 4 Fév 2021
You can try the code by setting symbolic preferences.
syms X;
sympref('FloatingPointOutput',true);
Y = (13500*X^(1229/500))/1000;
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Conversion Between Symbolic and Numeric dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!