File Exchange

image thumbnail

Khatri-Rao product

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

6 Downloads

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 (https://www.mathworks.com/matlabcentral/fileexchange/28872-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:

kr(zeros(10000,0),zeros(2,0))

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!