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 Version History

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 (2021). Khatri-Rao product (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

Molly Mao

Harry Commin

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

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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!