What codes can be used to retain the decimals before the defined symbolic variable
Afficher commentaires plus anciens
Hi there,
I want to ask, what codes can be used to retain the decimals before the defined symbolic variable? For instance, a symbolic result
0.0029068360163364559412002563476562*dis_r1 - 0.005666737824361646885806820250764*dis_r2 + 0.056999838488600009997475659418*dis_r3 – 0.001770474043114554640876434632446*dis_t2 - 0.045184740924660363181608602189954*dis_t3 + 6.4455841527204101204420278888018e-37*for_q1 - 0.03001164382667592667175426868198*for_q2
has been obtained, where dis_r1, dis_r2, dis_r3, for_q1, and for_q2 are defined symbolic variables. I want to keep three decimals before them.
Many thanks!
1 commentaire
I am seeing oddities,
ttt = sym('0.0029068360163364559412002563476562')
length(char(ttt))
Except most of the time it returns something of length 104, or 136, but sometimes 36...
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Logical 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!