Cody

Problem 42697. sparse_matrix

You convert a vector to a sparse matrix.

for example x =[1 2 3];

output will be y =

             [1 0 0
              0 1 0
              0 0 1];

Solution Stats

81.82% Correct | 18.18% Incorrect
Last solution submitted on Jan 09, 2019

Problem Recent Solvers25

Suggested Problems

More from this Author22

Problem Tags