Community Profile

photo

Swisslog


Open Univ

Active since 2013

Statistics

  • Thankful Level 3

View badges

Content Feed

View by

Question


Performing stats on subsections of a matrix
I have a two row matrix and I want to be able to extract some metrics (i.e. mean, median std) from numbers in the 2nd row based ...

10 years ago | 2 answers | 0

2

answers

Question


Calculate differences between all values in vector
I'm trying to produce some code that will calculate the differences between nearly all values in a vector. Specifically, say ...

10 years ago | 3 answers | 1

3

answers

Question


Find length of contiguous numbers in a vector that sum to a given value
I have a column vector, and I need to look within this vector and find a run of contiguous numbers which sum to a specific value...

10 years ago | 2 answers | 0

2

answers

Question


Matlab (Mac) suddenly not working on startup
Strange one this, On startup matlab is unresponsive, despite everything appearing to have initialised fine and the status shown ...

10 years ago | 1 answer | 0

1

answer

Question


Loop step size issue
Hoping there is a very simple solution to this but being new to matlab can't quite see where I'm going wrong: for i = 10:5:...

11 years ago | 3 answers | 0

3

answers

Question


Find contiguous values in vector that sum to specified value
Hi all, I have a column vector e.g. V=[1 0 2 2 1 1] I need to look within this vector and find a run of contiguous value...

11 years ago | 2 answers | 0

2

answers

Question


Dynamic moving average with specific criteria
I have some code that takes a column vector and performs a moving average on these data. The results from the moving average a...

11 years ago | 1 answer | 0

1

answer

Answered
Speeding up a loop
Thanks Jan, This seems to have done the trick - much faster and I've learned a lot, cheers

11 years ago | 0

Question


Speeding up a loop
I have made a simple loop that works fine when dealing with small datasets, but takes ages to run when L is 10^6 in size - whi...

11 years ago | 2 answers | 0

2

answers