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

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

[Octave-bug-tracker] [bug #46385] Can't Repmat Structure Arrays


From: Max Görner
Subject: [Octave-bug-tracker] [bug #46385] Can't Repmat Structure Arrays
Date: Fri, 06 Nov 2015 09:38:44 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0

URL:
  <http://savannah.gnu.org/bugs/?46385>

                 Summary: Can't Repmat Structure Arrays
                 Project: GNU Octave
            Submitted by: maxg
            Submitted on: Fr 06 Nov 2015 09:38:43 GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Other
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I wanted to repmat structure arrays, but this will fail.

An example is:

M = repmat(struct('a', ones(100), 'b', true), 1, 2);
M = repmat(M, 1, 2);
error: internal error: dimension mismatch across fields in struct
error: called from
    repmat at line 117 column 9


Under Matlab R2015b this works like a charm. But even ignoring Matlab I think
that code should work.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?46385>

_______________________________________________
  Nachricht gesendet von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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