Learn R Programming

tensorFun (version 0.1.1)

Mcut: Matrix cutting

Description

Cutting the bottom few rows of a matrix B so that B has the same number of rows as matrix A

Usage

Mcut(A, B)

Value

A matrix with n rows and l columns

Arguments

A

A matrix with n rows and l columns

B

A matrix with k rows and l columns, with k no less than n

Examples

Run this code
Mcut(matrix(1:4,nrow=2), matrix(1:6,nrow=3))

Run the code above in your browser using DataLab