RATS command effect: how to explain?

 採用された回答

Vieniava
Vieniava 2011 年 2 月 11 日

0 投票

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 '

その他の回答 (1 件)

Igor
Igor 2011 年 2 月 11 日

0 投票

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

カテゴリ

ヘルプ センター および File ExchangeSoftware Development Tools についてさらに検索

タグ

質問済み:

2011 年 2 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by