help-octave
[Top][All Lists]
Advanced

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

Re: MAtlab and Octave same code for both


From: Jun Ohta
Subject: Re: MAtlab and Octave same code for both
Date: Thu, 23 Jun 2005 23:36:57 +0900

I am writing m-files for both Octave and Matlab now. 
Here I report differences I have noticed and overcome in my work.
I would appreciate it if you let me know a more suitable place to 
post such things.
Thank you.

Jun Ohta
www.metabo-info.org 

-------------------------------------------------------------
OCTAVE
>> OCTAVE_VERSION
OCTAVE_VERSION = 2.1.71
>> a='test'
a = test
>> b=char('',a)
b = test
>> size(b)
ans =

        1        4

>> str2num('e')
ans = 2.7183
>> 
-------------------------------------------

MATLAVE
>> version

ans =

7.0.4.365 (R14) Service Pack 2

>> a = 'test'

a =

test

>> b=char('',a)

b =

    
test

>> size(b)

ans =

     2     4

>> str2num('e')

ans =

     []

>> 
----------------------------------------------




-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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