Difference between revisions of "Reprows.m"
(Expand See also links to related Spinach functions and docs) |
(Update links for maintainer-requested unihash to hash_unique rename) |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:reprows.m}} __NOTOC__ | {{DISPLAYTITLE:reprows.m}} __NOTOC__ | ||
| − | Replicates specified rows of a matrix or cell array a | + | Replicates specified rows of a matrix or cell array a specified number of times. |
==Syntax== | ==Syntax== | ||
| Line 6: | Line 6: | ||
B=reprows(A,row_nums,rep_counts) | B=reprows(A,row_nums,rep_counts) | ||
| − | == | + | ==Parameters== |
A - a numeric matrix or a cell array | A - a numeric matrix or a cell array | ||
| Line 24: | Line 24: | ||
==See also== | ==See also== | ||
| − | + | [[repcols.m]], [[prune_subgraphs.m]], [[hash_unique.m]], [[min_int_type.m]], [[which_subst.m]], [[autoexec.m]], [[bos_product_table.m]], [[fft_freq_axis.m]], [[fwhm2rlx.m]], [[icm2hz.m]], [[ifft_time_axis.m]], [[intrep.m]], [[istraceless.m]], [[kq2lin.m]], [[kronm.m]], [[lcurve.m]], [[lin2kq.m]], [[redfield_integral_async.m]], [[redfield_integral_serial.m]], [[serpentine.m]], [[st_product_table.m]], [[tikhol1n.m]], [[xyz2hfc.m]], [[Kernel_utilities]] | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
''Version 2.11, authors: [[Ilya Kuprov]]'' | ''Version 2.11, authors: [[Ilya Kuprov]]'' | ||
Latest revision as of 16:20, 11 October 2026
Replicates specified rows of a matrix or cell array a specified number of times.
Syntax
B=reprows(A,row_nums,rep_counts)
Parameters
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
repcols.m, prune_subgraphs.m, hash_unique.m, min_int_type.m, which_subst.m, autoexec.m, bos_product_table.m, fft_freq_axis.m, fwhm2rlx.m, icm2hz.m, ifft_time_axis.m, intrep.m, istraceless.m, kq2lin.m, kronm.m, lcurve.m, lin2kq.m, redfield_integral_async.m, redfield_integral_serial.m, serpentine.m, st_product_table.m, tikhol1n.m, xyz2hfc.m, Kernel_utilities
Version 2.11, authors: Ilya Kuprov