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

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

[Octave-bug-tracker] [bug #62432] classdef object display of boolean mat


From: PIERRE LABRECHE
Subject: [Octave-bug-tracker] [bug #62432] classdef object display of boolean matrix property fails with error: octave_base_value::bool_value(): wrong type argumen
Date: Tue, 10 May 2022 12:12:08 -0400 (EDT)

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

                 Summary: classdef object display of boolean matrix property
fails with error: octave_base_value::bool_value(): wrong type argumen
                 Project: GNU Octave
            Submitted by: pierre5018
            Submitted on: mar. 10 mai 2022 12:12:06 EDT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: PIERRE LABRECHE
        Originator Email: 
             Open/Closed: Open
                 Release: 7.1.0
         Discussion Lock: Any
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

Given a classdef file Bool_matrix_class.m

classdef Bool_matrix_class
  properties
    x ;
  endproperties

  methods
    function obj = Bool_matrix_class()
      obj.x = false([1 3]) ;
    endfunction
  endmethods
endclassdef


The interpreter behaves as shown below:

⃲>> obj = Bool_matrix_class()
                    obj =

                      Bool_matrix_class object with properties:

                          x: error: octave_base_value::bool_value(): wrong
type argument 'bool matrix'
>> obj.x
ans =

                          0  0  0

>>






    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via Savannah
  https://savannah.gnu.org/




reply via email to

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