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

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

[Octave-bug-tracker] [bug #55193] Error in structures


From: Massimo
Subject: [Octave-bug-tracker] [bug #55193] Error in structures
Date: Mon, 10 Dec 2018 05:37:11 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?55193>

                 Summary: Error in structures
                 Project: GNU Octave
            Submitted by: nightjar
            Submitted on: Mon 10 Dec 2018 10:37:09 AM UTC
                Category: Documentation
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.1
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

I followed this part of the documentation
https://octave.org/doc/interpreter/Basic-Usage-and-Examples.html#Basic-Usage-and-Examples

I encountered an error when I changed the value of the element b of the
structure x with another structure containing the single element d, which has
a value of 3.

This is my log

GNU Octave, version 4.4.1
Copyright (C) 2018 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.

Octave was configured for "x86_64-w64-mingw32".

Additional information about Octave is available at https://www.octave.org.

Please contribute if you find this software useful.
For more information, visit https://www.octave.org/get-involved.html

Read https://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.

octave:1> x.a = 1;
octave:2> x.b = [1, 2; 3, 4];
octave:3> x.c = "string";
octave:4> x
x =

  scalar structure containing the fields:

    a =  1
    b =

       1   2
       3   4

    c = string

octave:5> y = x
y =

  scalar structure containing the fields:

    a =  1
    b =

       1   2
       3   4

    c = string

octave:6> x.b.d = 3;
error: invalid dot name structure assignment because the structure array is
empty.  Specify a subscript on the structure array to resolve.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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