RATS command effect: how to explain?

 Réponse acceptée

Vieniava
Vieniava le 11 Fév 2011

0 votes

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 '

Plus de réponses (1)

Igor
Igor le 11 Fév 2011

0 votes

exactly! and 16=ascii(0)-acsii( )?
thanks

Catégories

En savoir plus sur Software Development Tools 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!

Translated by