[Top][All Lists]

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

[Octave-bug-tracker] [bug #55880] octave misses matlab (feature?) to cre

From: A.R. Burgers
Subject: [Octave-bug-tracker] [bug #55880] octave misses matlab (feature?) to create array of empty structs
Date: Sun, 10 Mar 2019 17:26:03 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299


                 Summary: octave misses matlab (feature?) to create array of
empty structs
                 Project: GNU Octave
            Submitted by: arb
            Submitted on: Sun 10 Mar 2019 09:26:01 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any



matlab has a rather surprising, I think undocumented, way to create an array
of empty structs:

struct_array = reshape(struct(), 3, 1)

matlab output:

struct_array = 3x1 struct array with no fields.


Reply to this item at:


  Message sent via Savannah

reply via email to

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