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

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

[Octave-bug-tracker] [bug #65876] error retrieving data from struct valu


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #65876] error retrieving data from struct values in containers.Maps
Date: Thu, 13 Jun 2024 13:42:29 -0400 (EDT)

Follow-up Comment #7, bug #65876 (group octave):

That we are having to consider so many special cases leads me to think we are
doing something wrong when trying to evaluate these kinds of expressions. 
Maybe there is a better way?

Using the following classdef based on the original example from bug #48693,


classdef foocls
  methods
    function varargout = subsref (obj, idx)
      nargout
      varargout = num2cell (zeros (size (idx(1).subs{1})));
    end
  end
end


what does Matlab display for nargout inside the subsref method when
evaluating


x = foocls;
x{1:10}


and what is displayed for the output of the "x{1:10}" indexing expression?


    _______________________________________________________

Reply to this item at:

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

{savane: Include the next line when replying by email.}
{savane: user = octave-bug-tracker@gnu.org; tracker = bugs; item = 65876}

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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