Community Profile

photo

Noah Chrein


Active since 2015

Followers: 0   Following: 0

Statistics

  • Thankful Level 1

View badges

Feeds

View by

Question


Vectorizing a recursive for-loop
Hey, I need help vectorizing this for-loop. In general, I need help vectorizing a for-loop with a term that references it's prev...

8 years ago | 1 answer | 1

1

answer

Question


using find on each column of a matrix independently
Hello, I would like to use the find function on each row independently in a vectorized way. for example, I want to find the f...

9 years ago | 3 answers | 0

3

answers

Question


Take a lineout of a matrix, defined by a function
Let M be an m by n matrix, let f:(1:m)->(1:n) how can I create a vector that contains all the points that f hits? Example:...

9 years ago | 1 answer | 0

1

answer

Question


Manipulating cell arrays based on index
how can I manipulate the elements of an array of cells based on index? for a double array, I can just do this: >> j = zeros...

9 years ago | 2 answers | 0

2

answers

Question


Arrayfun with a function that takes multiple inputs
say I have an array that I want to run a function over each of its elements, I could easily do this with arrayfun(@f,v) where f ...

9 years ago | 4 answers | 0

4

answers

Question


access elements of a vector output in one line
say I have some function output = f(vars), and output is a vector. how can I, in one line, access elements of this vector? ex...

9 years ago | 2 answers | 0

2

answers

Question


Manipulating Matrix elements based on their index without using a for loop.
Can I do simple manipulations on each matrix element based on its index without having to run a for loop? for example, say I ...

9 years ago | 2 answers | 0

2

answers