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

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

[Octave-bug-tracker] [bug #41011] scalar indexed assignment should cast


From: Felipe G. Nievinski
Subject: [Octave-bug-tracker] [bug #41011] scalar indexed assignment should cast input type
Date: Fri, 27 Dec 2013 03:34:15 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36

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

                 Summary: scalar indexed assignment should cast input type
                 Project: GNU Octave
            Submitted by: fgnievinski
            Submitted on: Fri 27 Dec 2013 03:34:14 AM GMT
                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: 3.6.4
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

In Octave:

octave:8> temp = [true, false];  temp(1) = 0;  class(temp)
ans = logical
octave:9> temp = true;  temp(1) = 0;  class(temp)
ans = double
octave:10> temp = true;  temp(2) = 0;  class(temp)
ans = double


In Matlab:

>> temp = [true, false];  temp(1) = 0;  class(temp)
ans =
logical
>> temp = true;  temp(1) = 0;  class(temp)
ans =
logical
>> temp = true;  temp(2) = 0;  class(temp)
ans =
logical





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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