File Exchange

image thumbnail

Khatri-Rao product

version (1.48 KB) by Laurent S
An efficient implementation of the Khatri-Rao product.


Updated 21 Oct 2010

View License

kr.m efficiently computes the Khatri-Rao product of two matrices, or a string of Khatri-Rao products of several matrices.

Cite As

Laurent S (2020). Khatri-Rao product (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

Molly Mao

The function help states that the result is an I*J-by-K matrix. This is not always true. Example:


ans =

Empty matrix: 2-by-0


Improved input handling.

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags