Community Profile

Contact

Top 5% contributor

I just can't wrap my head around how to find all neighbours of an element in a N-dimensional matrix. After reading through the d...

4 Answers

1

Asked 1 year ago

Sorry guys, I admit that I should have done "dbstop if error" the first time I encountered the error. Anyway: Bruno, your last c...

2838 views

Responded 2 years ago

I'm afraid that didn't fix it - there's still the same error.

Thanks Bruno and dpb for your great support. I just tried out Bruno's code snippet - unfortunately it returned an error for line...

Hi Bruno, thanks for your effort...The typical value for "len" is between 50 and several hundreds.

dpb: I've just re-read your reply: If I understand you correctly, you're basically saying that my loops only fill the first lowe...

dpb, your solution for the upper part of the code (using diag and diff) is brilliant - I implemented it right away. What I'm tr...

I have a function that takes a nx1 time series "ts" as input and returns a nxn matrix "V". Now imagine "ts" as a landscape: When...

Posted 2 years ago

Jan, do you get the same errors/problems when running Mexme?

0

Answered 2 years ago

I spent a couple of hours today searching through C/C++ forums for the solution to the error message I get in line 33 - without ...

I'm trying to create a so-called underwater plot for a time series *ts*, where all of the points that follow the most recent loc...

2 Answers

Hi, I have a mxn matrix and I need to find the maximum number of consecutive negative values for each column. So the outpu...

3 Answers

I've finally managed to remove all(!) of the nested loops - the code is now completely vectorized: ----- function ec = someFunct...

1950 views

Responded 1 year ago

I've finally managed to remove all(!) of the for loops - the code is completely vectorized now: ----- function ec = someFunction...

You're right there...the risk level values I posted are not really the values I'm working with. Over the last hour I've done so...

Ok, I found what makes the difference. Now both the algorithms give the exact same results. Here's the updated version: risk = ...

At first I thought the differences were only subtle, but after further investigation I found out that the opposite is the case. ...

Roger, thanks very much for your help - I just ran your code but it seems to give slightly different results than my original ve...

Hi, I have a function with three nested for-loops that is too slow for its intended use. I've already tried to speed up the code...

Posted 1 year ago

Everytime I start Matlab I get the following error message in the command window: This indicates a potentially serious problem...

1693 views

Hi, I've downloaded c++ code from the file exchange that implements the <http://www.mathworks.de/matlabcentral/fileexchange/...

1 Answers

Hi, I have a matrix *m* and want to set all elements that are NaN, Inf or -Inf to the minimum of the corresponding column. Fo...

Hi, I have a vector that contains positive as well as negative weights. For example: 0.75 -0.14 -0.92 0.56 -0.2...

I have a n-dimensional matrix *M*. Now I'm looking for a way to create a 1xn cell array, where the index vector of the n-th dime...

I'd like to create a textbox annotation in a figure called "figure1", but it always gives me an error saying that there are too ...

Asked 2 years ago

Hi, I want to use functions from the TISEAN package in Matlab and I've tried to implement this as suggested <http://www.agnld...

I'd like to use <http://www.mathworks.com/matlabcentral/fileexchange/31257-mexme-write-mex-files-in-no-time MexMe> to create mex...

Hi, I'm working on some code for _roulette wheel selection_ and have some problems vectorizing the last two lines of this sec...

Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

Solve this!

1 year ago

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

Load more