Tim David
Followers: 0 Following: 0
Feeds
提问
Changing array elements relative to it's size and position in the array
If I have an array such as: R = [0, 0, 4, 0, 1, 0, 0, 0, 0, 6]; I want to code it so that all elements are checked and if the ...
3 years 前 | 1 个回答 | 0
1
个回答提问
What is a more efficient method of increasing non-zero entries by one
I'm trying to write an array of length 10 where some entries are zero and some are non-zero. I want to increase all the non-zero...
3 years 前 | 1 个回答 | 0
1
个回答提问
How to shift entries in a vector by the value of the number in that entry?
For example, if i have a vector T = [0, 0, 4, 0, 7, 0, 0, 5, 0, 9] How would i go about moving every entry to the right by t...
3 years 前 | 2 个回答 | 0