[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help with rat()
From: |
Rik |
Subject: |
Re: Help with rat() |
Date: |
Thu, 6 Dec 2018 09:05:09 -0800 |
On 12/06/2018 08:49 AM, CROZIER Richard wrote:
> R2018b:
>
> >> s = rat ([Inf 0 1 1/2])
> size (s)
>
> s =
>
> 4×10 char array
>
> 'Inf '
> '0 '
> '1 '
> '1 + 1/(-2)'
>
>
> ans =
>
> 4.0000e+000 10.0000e+000
>
>
>
> On 06/12/2018 16:46, Rik wrote:
>> Could someone run the following test under Matlab?
>>
>> s = rat ([Inf 0 1 1/2])
>> size (s)
>>
>> Thanks,
>> Rik
>>
>>
Richard,
Could you try this as well? I'm surprised that they don't return "1/0" for
Inf.
rats (Inf)
--Rik