# Tagged Questions

20 views

### directed simple graph, all paths from node $v_0$ to an other node $v$, MATLAB

consider a directed simple graph $G=(V,E)$ with $V=\lbrace v_0,v_1,\ldots,v_k \rbrace$ and adjacency matrix $A=(a_{ij})$, where $a_{ij}=1$ means, that there is an arc from node $v_i$ to node ...
112 views

### Fast algorithm for approximating Eigenvalue distribution of large sparse matrix

I am interested in the eigenvalue distribution of a huge $2^{16}$x$2^{16}$ Hermitian sparse matrix with spectrum contained in $[-1,1]$. That is I don't need to know all eigenvalues exactly, but rather ...
36 views

### Could anyone explain how is this Matlab code for log likelihood of Gaussian distribution implemented?

I was implementing Expectation-maximization algorithm for gaussian mixture module. However I realized my implementation has very bad accuracy. Then I found some code on internet. It seems this ...
27 views

### Matlab create matrix without loops

I'm trying to create a Matrix in Matlab, which is dependent on 2 control variables $i$ and $n$. They are defined like this: $i=1:10$, $n=0:N-1$. Now I'm trying to define a matrix, where an entry is: ...
385 views

### Secant method in Matlab

I have done following, but I don't know how to put that function into this: ...
168 views

### Round a set to the nearest values in another set (2D), faster algorithm with Matlab

Given a set of numbers, like A={{1,2.5,3}, {4.2,7,10}}; and another set of numbers, like B={1,2,3,4,5}; Is there a fast ...
34 views

### Implement ideal line search algorithm

I have the function $f(x)=\frac {1}{2} \mathbf x^T Q \mathbf x$. I want to use the steepest descent algorithm where $Q$ is the diagonal matrix $\begin{bmatrix}1 & 0\\0 & 20\end{bmatrix}$ and ...
73 views

### Serious trouble converting algorithm to MATLAB code

I'm new to MATLAB and I'm having a really hard time converting an algorithm that I constructed, into code in MATLAB. Can anyone please help me? Here is my problem and algorithm: Romberg Integration ...
339 views

### Problem with an algorithm to $3$-colour the edges of cubic graphs

I'm currently trying to implement an algorithm to $3$-colour the edges of cubic graphs. (I want to do this with Matlab's Symbolic toolbox). After restricting to planar graphs to ensure the existence ...
67 views

### How to solve this system with conjugate gradient algorithm

CG Algorithm https://skydrive.live.com/redir?resid=E0ED7271C68BE47C!386&v=3 System of equations, the question and the example https://skydrive.live.com/redir?resid=E0ED7271C68BE47C!387&v=3 ...
187 views

### Shift interval of log-normally distributed latin hypercube samples

first of all I'm not sure if this part of StackExchange is the right one because my question is mainly on a way to implement something in MATLAB. Ok, now let me try to pack my whole question in one ...
32 views

### STINT Approximate stochastic integrals

This is a matlab code to simulate stochastic integrals: ...
2k views

### command randn(1,N) in matlab

This program is in Matlab to simulate Brownian motion Generating GBM: ...
116 views

172 views

### Trying to sort the coefficients of the polynomial $(z-a)(z-b)(z-c)…(z-n)$ into a vector

So I have a factored polynomial of the form $(z-a)(z-b)(z-c)\ldots(z-n)$ for $n$ an even positive integer. Thus the coefficient of $z^k$ for $0 \le k < n$ will be the sum of all distinct $n-k$ ...