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

80.0% Correct | 20.0% Incorrect
Last Solution submitted on Jan 21, 2020

Problem Recent Solvers25

Suggested Problems

More from this Author21

Problem Tags