reprows.m

From Spinach Documentation Wiki
Revision as of 21:07, 22 February 2026 by Kuprov (talk | contribs) (Create documentation page from Spinach function header)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Replicates specified rows of a matrix or cell array a

Syntax

               B=reprows(A,row_nums,rep_counts)

Arguments

      A          - a numeric matrix or a cell array
      row_nums   - vector of row indices to replicate
      rep_counts - vector of positive integers specifying
                   how many copies of each row to make

Outputs

      B          - same type as A

Examples

See examples in the Spinach distribution relevant to this function.

Notes

This page was generated from the function header in the Spinach repository.

See also

Main_Page

Version 2.11, authors: Ilya Kuprov