Que.What is the output of the following code?A=[0 0 0; 0 9 0; 1 2 3]; nnz[A]
|
a. 4 |
b. 5 |
c. 3 |
d. Error |
Que.What is the output of the following code?A=[1 2 3; 32 23 26; 0 0 0]; spones(A)
|
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 |
Returns a sparse matrix with the zeros replaced by ones
Que.The space located for the matrix generated from the spones command is _______
|
a. Same as a sparse matrix |
b. Same as the original matrix |
c. Same as an identity matrix |
d. Double that of the sparse matrix |
Que.What is the output of the following code?A=[1 2 3; 4 5 6; 7 8 9];if( nzmax(A)==nzmax(spones(A) ) disp(‘Yeah !’)
|
a. No output |
b. Error |
c. Yeah ! |
d. Output suppressed |
Que.What is the output of the following code?nnz(spconvert([1 2 3; 4 5 6; 7 8 9])
|
a. 3 |
b. 2 |
c. 1 |
d. 6 |
Que.What is the output of the following code?nzmax(spconvert([1 2 3; 4 5 6; 7 8 9])
|
a. 2 |
b. 3 |
c. 1 |
d. Error |
Que.A memory for sparse matrix is dedicated by the ______ command.
|
a. spalloc |
b. sparsealloc |
c. allocspar |
d. no such command |
Que.What is the output of the following command?spalloc(2,3, 7)
|
a. A 2*3 sparse matrix |
b. Memory is allocated for a 2*3 sparse matrix |
c. A 3*2 sparse matrix |
d. Error |
Memory is allocated for a 2*3 sparse matrix
Que.The default number of non-zero elements which can be put into the memory allocated by the spalloc command is > 1.
|
a. True |
b. False |
c. May be True or False |
d. Can’t say |
Que.The pattern generated by the spy command is a measure of the number of zeros in the input matrix.
|
a. True |
b. False |
c. May be True or False |
d. Can’t say |