help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can a script tell if it's running on Octave or Matlab?


From: John W. Eaton
Subject: How can a script tell if it's running on Octave or Matlab?
Date: Fri, 25 Sep 1998 10:48:27 -0500 (CDT)

On 25-Sep-1998, address@hidden <address@hidden> wrote:

| I found
| a difference in the default behavior of the str2num function.  Will
| this be stable?
| 
| I ran the following on Matlab and  Octave:
|  v=version
|  vn=str2num(version)
| 
| Matlab (extraneous vertical space deleted):
| v = 5.1.0.421
| vn = 5.1000         0    0.4210
| 
| Octave (somewhat less extraneous vertical space deleted):
| v = 2.0.13
| vn = [](0x0)

Octave's str2num function works more like the one from Matlab 4.x, not
5.x.

jwe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]