[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Just noting syntax change...
From: |
Daniel J Sebald |
Subject: |
Just noting syntax change... |
Date: |
Mon, 20 Dec 2004 04:59:09 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041020 |
Here are a couple lines:
seconds = str2num(rin);
if (seconds ~= [])
that I think used to work equivalent to:
seconds = str2num(rin);
if (~isempty(seconds))
However, the test:
seconds ~= []
now produces
ans = [](0x0)
that is,
octave:21> seconds = str2num("4.55")
seconds = 4.5500
octave:22> seconds ~= []
ans = [](0x0)
I'm changing over to "isempty" under the assumption that "seconds ~= []"
is no longer valid syntax.
Dan
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Just noting syntax change...,
Daniel J Sebald <=