Is there a sparse version of dummyvar?

1 visualización (últimos 30 días)
Viktor Witkovsky
Viktor Witkovsky el 6 de En. de 2014
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?

Respuestas (0)

Categorías

Más información sobre Sparse Matrices en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by