Community Profile

photo

dave


LMU

Last seen: 6 months ago Active since 2012

Statistics

All
  • Thankful Level 3
  • Solver

View badges

Content Feed

View by

Question


Why does my mex-function for linear regression return r-squared values above 1?
In a mex-file I have a function called _ols()_ that is supposed to calculate a linear regression for two vectors, 'x' and 'y'. ...

3 years ago | 1 answer | 0

1

answer

Question


How could I translate this Python code to Matlab?
I have this python code that I would like to convert to Matlab code. Could anyone help me convert from one language to the other...

4 years ago | 1 answer | 0

1

answer

Question


Why do I receive error " Unable to create com.mathworks.toolbox.shared.controllib.desktop.ToolGroupWrapper$DefaultToolGroup" when using Simulink response optimization?
Hi, whenever I click the button *Design Variables Set* in Simulink's response optimization window, I get the following error:...

8 years ago | 0 answers | 0

0

answers

Question


How to speed up this graph filtering algorithm?
Hi, I'm using the <http://www.mathworks.com/matlabcentral/fileexchange/38689-pmfg PMFG> algorithm to filter out the insignifi...

8 years ago | 0 answers | 0

0

answers

Question


Help with 'underwater' plot
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...

8 years ago | 2 answers | 2

2

answers

Question


Help on creating a comma-separated list of financial time series objects
I'm trying to create a list of comma-separated financial time series objects (fints), in order to pass it to the financial toolb...

8 years ago | 1 answer | 0

1

answer

Question


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

8 years ago | 1 answer | 0

1

answer

Question


How to set all non-finite elements of a matrix to the minimum of the corresponding column?
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...

8 years ago | 1 answer | 0

1

answer

Question


Scaling positive and negative weights
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...

8 years ago | 1 answer | 0

1

answer

Question


n-dimensional matrix - Store the indexes of the n-th dimension in n-th cell
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...

8 years ago | 1 answer | 0

1

answer

Question


How to find all neighbours of an element in N-dimensional matrix
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...

8 years ago | 4 answers | 1

4

answers

Question


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

8 years ago | 3 answers | 0

3

answers

Solved


Sum all integers from 1 to 2^n
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.

9 years ago

Solved


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

9 years ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

9 years ago

Solved


Create a vector whose elements depend on the previous element
The idea is to create a vector A whose elements depend on the previous element : *A(i+1) = 2*A(i)+1* *2 Inputs*: - A : The...

9 years ago

Question


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

9 years ago | 2 answers | 0

2

answers

Question


What's wrong with this textbox annotation?
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 ...

9 years ago | 1 answer | 0

1

answer

Question


Can anyone help me improve this code?
I'm working on a function which takes an n-by-1 array (called "ts") as input and creates a n-by-n matrix (called "V"), where eac...

9 years ago | 1 answer | 0

1

answer

Question


Executing TISEAN binaries from within Matlab on Mac OS X 10.6.8
Hello, I downloaded TISEAN binaries for Mac, but unfortunately I just can't get it working on my Mac OSX 10.6.8. Everytime...

9 years ago | 1 answer | 0

1

answer

Question


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

9 years ago | 1 answer | 0

1

answer

Answered
Why do I get these error messages when using "MexMe"?
Jan, do you get the same errors/problems when running Mexme?

9 years ago | 0

Answered
Why do I get these error messages when using "MexMe"?
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 ...

9 years ago | 0

Question


Why do I get these error messages when using "MexMe"?
I'd like to use <http://www.mathworks.com/matlabcentral/fileexchange/31257-mexme-write-mex-files-in-no-time MexMe> to create mex...

9 years ago | 3 answers | 0

3

answers