How to use index array to replace values present at indices with a number #2674
Answered
by
josdejong
Prabakaran-Chandran
asked this question in
Q&A
-
I have indices in an array , say Index_array = [[0,1] , [1,2] , [2,3]] how to use this array for math.subset function . math.subset(array , math.index(Index_array) , 1) is not working Please help me |
Beta Was this translation helpful? Give feedback.
Answered by
josdejong
Nov 19, 2020
Replies: 1 comment
-
Have you seen the docs and examples on how to use indexes, Prabakaran? See: https://mathjs.org/docs/datatypes/matrices.html#getting-or-replacing-subsets |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
josdejong
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have you seen the docs and examples on how to use indexes, Prabakaran?
See: https://mathjs.org/docs/datatypes/matrices.html#getting-or-replacing-subsets