octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #58953] Error with 'end' in index expression w


From: Fernando
Subject: [Octave-bug-tracker] [bug #58953] Error with 'end' in index expression with nested function calls
Date: Fri, 11 Sep 2020 01:39:10 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0

Follow-up Comment #23, bug #58953 (project octave):

Here is what Matlab R2020a gives:


>> obj=myclass(1:5)
obj = 
  myclass with properties:
    data: [1 2 3 4 5]
>> obj.data(5)
-----------------
ans =
    '.'
ans =
    '()'
ans =
    'data'
ans =
  1×1 cell array
    {[5]}
-----------------
ans =
     1     1     1
>> obj.methodA(end)
-----------------
ans =
    '.'
ans =
    'methodA'
-----------------
-----------------
ans =
    '.'
ans =
    '()'
ans =
    'methodA'
ans =
  1×1 cell array
    {[3]}
-----------------
ans =
     1     1     1


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58953>

_______________________________________________
  Mensaje enviado vía Savannah
  https://savannah.gnu.org/




reply via email to

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