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

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

[Octave-bug-tracker] [bug #59527] num2str: percent sign removes newline


From: Felipe G. Nievinski
Subject: [Octave-bug-tracker] [bug #59527] num2str: percent sign removes newline for column vector
Date: Mon, 23 Nov 2020 19:48:48 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36

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

                 Summary: num2str: percent sign removes newline for column
vector
                 Project: GNU Octave
            Submitted by: fgnievinski
            Submitted on: Tue 24 Nov 2020 12:48:46 AM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 5.2.0
         Discussion Lock: Any
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

this works fine:

>> num2str([1;2], '%f')
ans =
1.000000
2.000000

arbitrary text in the formatis also fine:

>> num2str([1;2], '%fsometext')
ans =
1.000000sometext
2.000000sometext

but a literal percent sign causes newline to be removed when a column vector
is input:

>> num2str([1;2], '%f%%')
ans = 1.000000%2.000000%

in matlab, this is:

>> num2str([1;2], '%f%%')
ans =
  2×9 char array
    '1.000000%'
    '2.000000%'

related bug: #45174





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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