photo

Derek O'Connor


University College Dublin, Retired

Actif depuis 2011

Followers: 0   Following: 0

Message

Professional Interests: Algorithms and Data Structures, Numerical Analysis

Statistiques

All
MATLAB Answers

5 Questions
39 Réponses

File Exchange

2 Fichiers

RANG
1 157
of 300 756

RÉPUTATION
65

CONTRIBUTIONS
5 Questions
39 Réponses

ACCEPTATION DE VOS RÉPONSES
40.0%

VOTES REÇUS
30

RANG
3 921 of 21 077

RÉPUTATION
378

CLASSEMENT MOYEN
4.70

CONTRIBUTIONS
2 Fichiers

TÉLÉCHARGEMENTS
2

ALL TIME TÉLÉCHARGEMENTS
3583

RANG

of 170 890

CONTRIBUTIONS
0 Problèmes
0 Solutions

SCORE
0

NOMBRE DE BADGES
0

CONTRIBUTIONS
0 Publications

CONTRIBUTIONS
0 Public Chaîne

CLASSEMENT MOYEN

CONTRIBUTIONS
0 Point fort

NOMBRE MOYEN DE LIKES

  • Personal Best Downloads Level 1
  • First Review
  • 5-Star Galaxy Level 2
  • First Submission
  • 3 Month Streak
  • Thankful Level 1
  • Knowledgeable Level 1
  • First Answer

Afficher les badges

Feeds

Afficher par

Réponse apportée
Is there a better way to randomly generate a Doubly Stochastic Matrix?
@Matt, You are a true blue Matlabber. With just matrix indexing you have written a function which is many times faster than mine...

environ 13 ans il y a | 0

Question


Is there a better way to randomly generate a Doubly Stochastic Matrix?
Here is a profile of the call |n = 2*10^3; M = DStochMat02(n,ones(n)./n);| More specifically, can the hot-spot, statement 1...

environ 13 ans il y a | 2 réponses | 0

2

réponses

Réponse apportée
Memory Utilization of a program in matlab.
A few years ago I suggested to Mathworks that they include memory usage in their Profiler. They said they were thinking about it...

environ 13 ans il y a | 0

Réponse apportée
How to count consuctive 0's inbetween values of 1
This discussion might be useful: <http://www.mathworks.co.uk/matlabcentral/answers/16356-finding-sequences-of-1-s-values>

environ 13 ans il y a | 0

A soumis


The Bellman-Ford-Moore Shortest Path Algorithm
A simple, efficient sparse implementation of the original Bellman-Ford-Moore Shortest Path Algorithm

plus de 13 ans il y a | 1 téléchargement |

4.0 / 5
Thumbnail

Réponse apportée
Poisson random number generator
This is a cleaner fix of |PoissonSamp| % ------------------------------------------------------------- function S = Po...

plus de 13 ans il y a | 1

Réponse apportée
Poisson random number generator
I would like to thank Kang Wook Lee of Berkeley for pointing out an error in the code above. The last line should be |S(i) = k-1...

plus de 13 ans il y a | 1

Réponse apportée
Matlab gives wrong determinant value of 2x2 Matrix without warning.
@Nitin, The "issue" here is not round-off. It is the ill-condition of your matrix. Floating point arithmetic and its rounding...

presque 14 ans il y a | 1

Réponse apportée
Matlab gives wrong determinant value of 2x2 Matrix without warning.
The products above are too big to fit in 32-bit integers. You can get the correct result by switching to 64-bit integers: ...

presque 14 ans il y a | 0

Réponse apportée
Variation on the travelling salesman problem
@Walter, you're right, I mis-interpreted the problem. So back to the Zero-One LP solution. Given 2 3 1 A = ...

presque 14 ans il y a | 0

Réponse apportée
Variation on the travelling salesman problem
It can be solved as a _Zero-One Linear Program_: Let |xij = 1| if the number |aij| is chosen for row |i|, zero otherwise. ...

presque 14 ans il y a | 0

Réponse apportée
Inversion of a boolean matrix
*WRONG AGAIN* In testing Walter's suggestion about row and column sums I realized that |isInvBool2| is wrong. Try |B = [true...

presque 14 ans il y a | 1

| A accepté

Réponse apportée
Inversion of a boolean matrix
I am adding this crude |O(n^2)| invertibility test as a separate answer because my previous answer has become too long. %...

presque 14 ans il y a | 0

Question


Why are the BLAS functions in R2011b much faster than R2008a?
Here are the results of a simple Matrix Benchmark test with |n = 10^3; A = rand(n,n)| Dell Precision 690, 2x4-Core Xeon 354...

presque 14 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
Do you think that MATLAB is expensive?
The academic version of Matlab at about €500 is too expensive for me, a retired lecturer. Cleve Moler in his SIAM oral history i...

presque 14 ans il y a | 4

Réponse apportée
Poisson random number generator
I prefer this: % ------------------------------------------------------------- function S = PoissonSamp(lambda,ns); ...

presque 14 ans il y a | 1

Réponse apportée
Poisson random number generator
@Ahmed, you're correct, it is not correct. The function below is a Matlab translation of Kroese's algorithm. It seems to wor...

presque 14 ans il y a | 0

Réponse apportée
Poisson random number generator
Dirk Kroese has excellent notes here: <http://www.maths.uq.edu.au/~kroese/mccourse.pdf>, which are based on his book: D.P. Kr...

presque 14 ans il y a | 1

Réponse apportée
When to use the Secant Method of finding roots?
I would like to qualify what John says: "Methods like the secant method are rarely very good choices anyway." This is arguabl...

presque 14 ans il y a | 1

Réponse apportée
randsample issues and generating random numbers from large populations
Here are two functions for taking a sample |S| of size |Ns| from a large, simply-defined population |P| of size |Np|. Both use ...

presque 14 ans il y a | 1

Réponse apportée
Random sample without replacement
If you don't have access to *|R2011b|* and |randsample|, then the function below is reasonably fast on my |Dell Precision 690, ...

presque 14 ans il y a | 1

Réponse apportée
Generate a Sequence in MATLAB
L1 = L(:)'

presque 14 ans il y a | 0

Réponse apportée
Solve for x in (A^k)*x=b (sequentially, LU factorization)
Contrary to what Walter says, LU Decomposition is a great help in this problem. See my solution notes to Lab Exercise 6 --- LU...

environ 14 ans il y a | 1

Réponse apportée
speed up finding common values in multiple matrices
Here are some tests on loopy alternatives to vectorized functions. %----------------------------------- function [z,A,...

plus de 14 ans il y a | 0

Réponse apportée
Finding Sequences of 1's values
Jan, I'm using the Add-an-Answer window because the comment window is hard to use for all but short, text-only replies. I post...

plus de 14 ans il y a | 0

Réponse apportée
Finding Sequences of 1's values
This is a more general and simpler solution than my previous answer. %-------------------------------------------------------...

plus de 14 ans il y a | 0

Réponse apportée
Finding Sequences of 1's values
If you don't have any toolboxes then this plain Matlab function may help. It is based loosely on the WordCount procedure in Kern...

plus de 14 ans il y a | 1

Réponse apportée
Inversion of a boolean matrix
*THEOREM*. _If a Boolean matrix B possesses a one-sided inverse, that inverse is also a two-sided inverse. Furthermore suc...

plus de 14 ans il y a | 4

Réponse apportée
[DEPRECATED] What frustrates you about MATLAB?
At Walter Roberson's request I'm reposting this answer here. *Boredom Forecast*: High(78/100). _Discussion of Syntax_. First,...

plus de 14 ans il y a | 1

Réponse apportée
Problem with execution of "nested if" commands.
*Boredom Forecast*: _Discussion of Syntax_. High: (78/100) First, get the preferred indentation by using "smart indent" in the...

plus de 14 ans il y a | 0

Charger plus