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 10:25:25 -0400 (EDT)

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

The example code appears to fail for me with the bytecode interpreter enabled.
 I see the following:


octave:1> __vm_enable__ 
ans = 1
octave:2> __octave_config_info__ ('hg_id')
ans = 6f2baadfdb3d
octave:3>  np = 11;
octave:4> data.x = linspace(0, 10, np)';
octave:5> data.y = rand(np,1);
octave:6> cm = containers.Map;
warning: auto-compilation of Map failed with message classdef constructors are
not supported by the VM yet
octave:7> cm('el1') = data;
octave:8> cm('el1')
ans =

  scalar structure containing the fields:

    x =

        0
        1
        2
        3
        4
        5
        6
        7
        8
        9
       10

    y =

       0.7512
       0.9831
       0.8208
       0.5483
       0.8630
       0.2361
       0.4807
       0.2117
       0.7103
       0.6513
       0.6643


octave:9> plot(cm('el1').x, cm('el1').y);
error: subsref: function called with too many outputs
octave:10> cm('el1').x
error: subsref: function called with too many outputs


The


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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