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

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

[Octave-bug-tracker] [bug #57867] strrep: unexpected substitution behavi


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #57867] strrep: unexpected substitution behavior on a char array
Date: Thu, 20 Feb 2020 14:42:13 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36

Follow-up Comment #2, bug #57867 (project octave):

unknown, but for reference this function does not preserve length (and as in
the first examples, at any change it doesn't even try to preserve shape):


octave:7> strrep(c,'2','0000')
ans = 14  00005  36



Also, just to keep things connected a separate mailing list discussion is
polling about possible options, including whether to throw an error like
matlab, or keep the extended function and perform strrep operation by handling
it internally as a cell array. 

[2]
https://octave.1599824.n4.nabble.com/Re-character-matrix-inputs-to-string-functions-tp4695818.html

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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