octave-maintainers
[Top][All Lists]
Advanced

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

Re: There are something difference between MATLAB and Octave.


From: Judd Storrs
Subject: Re: There are something difference between MATLAB and Octave.
Date: Wed, 23 Jan 2019 12:35:51 -0600

FWIW I was surprised to find recently that Matlab R2018b actually does have double quotes but they produce "string" type objects instead of char vectors.

>> version

ans =

    '9.5.0.944444 (R2018b)'

>> a = 'foo bar'

a =

    'foo bar'

>> b = "hello world"

b = 

    "hello world"

>> whos
  Name      Size            Bytes  Class     Attributes

  a         1x8                14  char                
  ans       1x21               42  char                
  b         1x1               174  string              

>> 

On Sun, Jan 20, 2019 at 11:40 PM rachana <address@hidden> wrote:
1. Octave supports the use of both single and double quotes whereas MATLAB
supports only single quotes, which means parsing errors will occur if user
tries to use double quotes.

2. Octave supports C-style hexadecimal notation (e.g. "0xF0") and MATLAB
requires the hex2dec function (e.g. "hex2dec('F0')")

3. To end blocks, Octave can use "end" or specify the block with "endif,
endfor, ..."; MATLAB requires "end".



-----
Mobile app development companies India
Android apps development company Bangalore
--
Sent from: http://octave.1599824.n4.nabble.com/Octave-Maintainers-f1638794.html


reply via email to

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