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

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

[Octave-bug-tracker] [bug #63515] logical should convert char and string


From: Rik
Subject: [Octave-bug-tracker] [bug #63515] logical should convert char and strings instead of throwing an error for Matlab compatibility
Date: Mon, 12 Dec 2022 18:11:05 -0500 (EST)

Update of bug #63515 (project octave):

                Severity:                1 - Wish => 2 - Minor              
              Item Group:         Feature Request => Matlab Compatibility   
                  Status:                    None => Confirmed              
                 Summary: logical should convert char and strings instead of
throwing an error => logical should convert char and strings instead of
throwing an error for Matlab compatibility

    _______________________________________________________

Follow-up Comment #1:

I checked with Matlab and the conversion from a character vector to a logical
vector works as expected without throwing an error.


logical ('str')
 => [1 1 1]


Trying to perform logical on a string object *DOES* throw an error.


logical ("str")


I've marked this as a Matlab Compatibility issue.


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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