RATS command effect: how to explain?
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
>> rats(0.3)-rats(0.2)
ans =
0 0 0 0 0 0 2 0 -4 16 0 0 0 0
0 commentaires
Réponse acceptée
Vieniava
le 11 Fév 2011
rats() gives an output as string. So the ans you gave is a result of substraction of two strings.
rats(0.3)=
' 3/10 '
rats(0.2)=
' 1/5 '
0 commentaires
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Software Development Tools 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!