If you wanted to change a value in this matrix, you might be tempted to use the same indexing:
B(3,1) = 42;
This code does work, however, it is slow. Since MATLAB stores sparse matrices in compressed sparse column format, it needs to overwrite multiple entries in B.