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

71.43% Correct | 28.57% Incorrect
Last Solution submitted on Jun 26, 2020

Problem Recent Solvers30

Suggested Problems

More from this Author21

Problem Tags