Difference between revisions of "Repcols.m"
(Normalise sequential blank lines) |
m (Rename Arguments section heading to Parameters) |
||
| Line 6: | Line 6: | ||
B=repcols(A,col_nums,rep_counts) | B=repcols(A,col_nums,rep_counts) | ||
| − | == | + | ==Parameters== |
A - a numeric matrix or a cell array | A - a numeric matrix or a cell array | ||
Revision as of 17:51, 5 June 2026
Replicates specified columns of a matrix or cell array a specified number of times.
Syntax
B=repcols(A,col_nums,rep_counts)
Parameters
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