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

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

[Octave-bug-tracker] [bug #59751] support for 'like' option in zeros fun


From: Bill Greene
Subject: [Octave-bug-tracker] [bug #59751] support for 'like' option in zeros function
Date: Tue, 22 Dec 2020 08:26:07 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36

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

                 Summary: support for 'like' option in zeros function
                 Project: GNU Octave
            Submitted by: billgreene
            Submitted on: Tue 22 Dec 2020 01:26:04 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 6.1.0
         Discussion Lock: Any
        Operating System: Any

    _______________________________________________________

Details:

In matlab:
a=zeros(1,2,'like',5)
creates a 1x2 matrix of zeros.
Octave produces the following error messages:

octave:2> a=zeros(1,2,'like',5)
error: invalid conversion from string to real scalar
error: octave_base_value::int64_value (): wrong type argument 'sq_string'




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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