Community Profile

photo

Tim David


Last seen: 3 years ago Active since 2021

Followers: 0   Following: 0

Statistics

  • Thankful Level 2
  • Thankful Level 1

View badges

Feeds

View by

Question


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 ago | 1 answer | 0

1

answer

Question


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 ago | 1 answer | 0

1

answer

Question


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 ago | 2 answers | 0

2

answers