RATS command effect: how to explain?

 Accepted Answer

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 '

More Answers (1)

Igor
Igor on 11 Feb 2011
exactly! and 16=ascii(0)-acsii( )?
thanks

Categories

Find more on Software Development Tools in Help Center and File Exchange

Asked:

on 11 Feb 2011

Community Treasure Hunt

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

Start Hunting!