What is equivalent to the below Matlab code in Julia. Which creates a sparse matrix of 1:3 rows and fills the elements in columns [1 3 5] (corresponding to rows 1:3) by [11 12 13]
have you tried to google or use the build-in help mode?
>help sparse
sparse(I, J, V,[ m, n, combine])
Create a sparse matrix S of dimensions m x n such that S[I[k], J[k]] = V[k]. The combine function is used to combine duplicates. If m and n are not specified, they are set to maximum(I) and
maximum(J) respectively.