Community Profile

photo

AC


Active since 2012

Followers: 0   Following: 0

Message

Statistics

  • Knowledgeable Level 2
  • First Answer

View badges

Feeds

View by

Answered
Randomly choose between one of two options
Hi, I am not sure exactly what the structure of your data is. You may want to first transform your data into a 2 column mat...

bijna 12 jaar ago | 0

Answered
Silly error somewhere in my code
This time a real answer: it's a math problem. If that's ok, I'll answer with some latex code. Let f be the norm(0,1) pdf ...

bijna 12 jaar ago | 0

| accepted

Answered
Counter goes up than down to 1 in recursive function
Ok, I think I got it: I believe you need to recursively output N_n when you are calling numWindows within the function. I don...

bijna 12 jaar ago | 0

| accepted

Answered
computing area between 2 curves
Hi, From scratch, you could try something like: 1/2*(abs(C1(2:end)-C2(2:end))+abs(C1(1:end-1)-C2(1:end-1)))*diff(I)' ...

bijna 12 jaar ago | 0

| accepted

Answered
Subscript indices must either be real positive integers or logicals ERROR ,can't solve
Hi, How did you define your dif function? The error you get means that at some point you are trying to access part of a v...

bijna 12 jaar ago | 0

Question


Vectorize double loops with constraints on the indexes
Hi, I would like to speed up part of my code. While I kind of know how to vectorize loops in general, I'm stuck with a proble...

bijna 12 jaar ago | 3 answers | 0

3

answers