bugGNU Octave - Bugs: bug #38391, repmat do not accept more than 3...

 
 

bug #38391: repmat do not accept more than 3 arguments

Submitted by:  John Hunt <huntj>
Submitted on:  Sat 23 Feb 2013 08:42:33 PM UTC  
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  dev Operating System:  Any

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

Sat 20 Sep 2014 10:59:07 PM UTC, comment #4: 
Carnë Draug <carandraug>
Project Member
Sat 20 Sep 2014 09:28:24 PM UTC, comment #3: 

I've attached a patch. Seems to work for me now (e.g. repmat(pi, 1,2,3,4,5,5,5,5,6,8,8);). 

(file #32145)

Markus Bergholz <markuman>
Wed 17 Sep 2014 10:41:25 AM UTC, comment #2: 

I'm reopening this bug report because I think the bug is not that the documentation was incorrect but because that syntax did not work. Matlab seems to allow that syntax.

Carnë Draug <carandraug>
Project Member
Sat 23 Feb 2013 08:50:36 PM UTC, comment #1: 

This was fixed on the dev branch a while ago:

http://hg.savannah.gnu.org/hgweb/octave/rev/a52925666288

Jordi Gutiérrez Hermoso <jordigh>
Project Administrator
Sat 23 Feb 2013 08:42:33 PM UTC, original submission:  

contrary to the help of repmat advertising :

 -- Function File:  repmat (A, M, N, P, ...)

repmat does not accept more than 3 arguments :

octave:1> repmat(1:3, 2, 2, 2)
error: Invalid call to repmat.  Correct usage is:

Actually the repmat function has only 3 arguments

function x = repmat (A, m, n)

The attached patch removes the wrong advertising line.

John Hunt <huntj>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #32149:  repmat_hg_tip-4.patch added by markuman (2KiB - text/x-patch)
file #32148:  repmat_hg_tip-3.patch added by markuman (2KiB - text/x-patch)
file #32147:  repmat_hg_tip-2.patch added by markuman (2KiB - text/x-patch)
file #32146:  repmat_hg_tip.patch added by markuman (2KiB - text/x-patch)
file #32145:  repmat.patch added by markuman (1KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by markuman (Updated the item)
  • -email is unavailable- added by jordigh (Posted a comment)
  • -email is unavailable- added by huntj (Submitted the item)
  •  

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

    Only project members can vote.

     

     

     

    Follow 16 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-09-20 carandraug StatusConfirmed => Fixed
        Open/ClosedOpen => Closed
        Release3.8.2 => dev
    2014-09-20 markuman Attached File- => Added repmat_hg_tip-4.patch, #32149
    2014-09-20 markuman Attached File- => Added repmat_hg_tip-3.patch, #32148
    2014-09-20 markuman Attached File- => Added repmat_hg_tip-2.patch, #32147
    2014-09-20 markuman Attached File- => Added repmat_hg_tip.patch, #32146
    2014-09-20 markuman Attached File- => Added repmat.patch, #32145
    2014-09-17 carandraug CategoryDocumentation => Octave Function
        Item GroupDocumentation => Matlab Compatibility
        StatusFixed => Confirmed
        Open/ClosedClosed => Open
        Release3.6.4 => 3.8.2
    2013-02-23 jordigh StatusNone => Fixed
        Open/ClosedOpen => Closed
    2013-02-23 huntj Attached File- => Added octave-3.6.4-repmat_help.patch, #27513

    Back to the top


    Powered by Savane 3.5