Difference between revisions of "Repcols.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Create documentation page from Spinach function header)
 
(Expand See also links to related Spinach functions and docs)
Line 24: Line 24:
  
 
==See also==
 
==See also==
−
[[Main_Page]]
+
* [[reprows.m]]
 +
* [[prune_subgraphs.m]]
 +
* [[unihash.m]]
 +
* [[min_int_type.m]]
 +
* [[which_subst.m]]
 +
* [[Kernel_utilities]]
 +
 
 +
 
  
 
''Version 2.11, authors: [[Ilya Kuprov]]''
 
''Version 2.11, authors: [[Ilya Kuprov]]''

Revision as of 20:24, 22 February 2026

Replicates specified columns of a matrix or cell array a

Syntax

               B=repcols(A,col_nums,rep_counts)

Arguments

      A          - a numeric matrix or a cell array
      col_nums   - vector of column indices to replicate
      rep_counts - vector of positive integers specifying
                   how many copies of each column 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


Version 2.11, authors: Ilya Kuprov