RATS command effect: how to explain?
1 次查看(过去 30 天)
显示 更早的评论
>> rats(0.3)-rats(0.2)
ans =
0 0 0 0 0 0 2 0 -4 16 0 0 0 0
0 个评论
采纳的回答
Vieniava
2011-2-11
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 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Discrete Math 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!