bugGNU Octave - Bugs: bug #42341, strrep() matlab compatibility when...

 
 

bug #42341: strrep() matlab compatibility when output is empty

Submitted by:  sergey plotnikov <nul0m>
Submitted on:  Mon 12 May 2014 04:19:03 PM UTC  
 
Category: Octave FunctionSeverity: 2 - Minor
Priority: 3 - LowItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.8.1Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 15 May 2014 09:25:00 PM UTC, comment #1:

This was trivial to solve. I fixed it on the development branch in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/86818f2c4a92).

Rik <rik5>
Project Administrator
Mon 12 May 2014 04:19:03 PM UTC, original submission:

There's a difference between Matlab's and Octave's dimensions of output when result is supposed to be an empty string.

See the following example:

Matlab's result is more consistent with the result of size() for an empty string which is actual output of strrep() above.

sergey plotnikov <nul0m>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by nul0m (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 15 May 2014 09:25:00 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Wed 14 May 2014 04:29:05 AM UTCrik5Carbon-CopyRemoved 72865=>-
    Wed 14 May 2014 04:28:58 AM UTCrik5Severity3 - Normal=>2 - Minor
      Priority5 - Normal=>3 - Low

    Back to the top


    Powered by Savane 3.1-cleanup1