RATS command effect: how to explain?

 Akzeptierte Antwort

Vieniava
Vieniava am 11 Feb. 2011

0 Stimmen

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 '

Weitere Antworten (1)

Igor
Igor am 11 Feb. 2011

0 Stimmen

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

Kategorien

Mehr zu Software Development Tools finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 11 Feb. 2011

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by