Is there a sparse version of dummyvar?

I need to generate large sparse matrix from nominal variable, say x,
X = dummyvar(x)
The output X is a large dense matrix of zeros and ones. Is there a version of dummyvar which produse as an outpu a sparse matrix X?

답변 (0개)

카테고리

도움말 센터File Exchange에서 Analysis of Variance and Covariance에 대해 자세히 알아보기

제품

태그

질문:

2014년 1월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by