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

70.73% Correct | 29.27% Incorrect
Last Solution submitted on Apr 04, 2020

Problem Recent Solvers26

Suggested Problems

More from this Author21

Problem Tags