Community Profile

photo

Noah Chrein


Attivo dal 2015

Statistiche

  • Thankful Level 1

Visualizza badge

Content Feed

Visto da

Domanda


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...

oltre 8 anni fa | 1 risposta | 1

1

risposta

Domanda


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...

oltre 8 anni fa | 3 risposte | 0

3

risposte

Domanda


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:...

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

oltre 8 anni fa | 2 risposte | 0

2

risposte

Domanda


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 ...

oltre 8 anni fa | 4 risposte | 0

4

risposte

Domanda


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...

quasi 9 anni fa | 2 risposte | 0

2

risposte

Domanda


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 ...

quasi 9 anni fa | 2 risposte | 0

2

risposte