Đặng Thị Thúy Hằng
New member
What is the output of the following code?
A. Returns a sparse matrix with the non-zeros replaced by normally distributed random numbers
B. Returns a sparse matrix with the zeros replaced by ones
C. Returns a sparse matrix with the non-zeros replaced by fractions
D. Returns a sparse matrix with the non-zeros replaced by random numbers
Code:
A=[1 2 3; 32 23 26; 0 0 0]; spones(A)
B. Returns a sparse matrix with the zeros replaced by ones
C. Returns a sparse matrix with the non-zeros replaced by fractions
D. Returns a sparse matrix with the non-zeros replaced by random numbers