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

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

[Octave-bug-tracker] [bug #50202] automatic padding: a(3)=4


From: Ernst Reissner
Subject: [Octave-bug-tracker] [bug #50202] automatic padding: a(3)=4
Date: Wed, 1 Feb 2017 12:03:14 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0

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

                 Summary: automatic padding: a(3)=4
                 Project: GNU Octave
            Submitted by: ernstreissner
            Submitted on: Wed 01 Feb 2017 12:03:13 PM GMT
                Category: Documentation
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.0
        Operating System: Any

    _______________________________________________________

Details:

If you have an undefined variable a 
settig a(3)=4 yields a vector padded with 0's. 
Likewise for a(3,4)=true. 

I also have the impression, that arrays of objects 
behave a little the same: 
Assume pn is a class and a constructor, 
a(3)=pn(4) seems to perform padding with pn(). 

If so, this should be documented. 
I do not know how matlab acts in this case.. did not find docs. 





    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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