# Tagged Questions

MATLAB is a high-level language and interactive programming environment for numerical computation and visualization developed by MathWorks. MATLAB can be used when performing tasks such as signal processing and communications, image and video processing, computational finance, and computational ...

695 views

### diffusion equation plot (matlab or maple)

The advection diffusion equation is the partial differential equation $$\frac{\partial C}{\partial t} = D\frac{\partial^2 C}{\partial x^2} - v \frac{\partial C}{\partial x}$$ with the boundary ...
4 views

### MIMO static decoupling matrix

I am trying to implement a static decoupling matrix of a MIMO system in MATLAB Simulink. This static decoupling matrix is of size 2x2 with some complex numbers, and the control scheme used for ...
542 views

### MATLAB determining elementary matrices for LU decomposition

I am confused by this question I am studying for MATLAB practice.
12 views

### How many eigenvectors can a real, symmetric, sparse matrix have?

I'm attempting to diagonalise a sparse, real and symmetric matrix H in MATLAB, using [F, E] = eigs(H, size(H,1)). This however ...
28 views

### How to represent $GF(q)$ element in Matlab [on hold]

Everyone, I am trying to simulate in Matlab the Galois field $GF(q)$ where $q$, for example, is $8$. I know the elements of $GF(8)$ are $0,1,\alpha,\alpha^2,\alpha^3,\ldots,\alpha^6$. Also, we can ...
54 views

### How to calculate matrix rotation

Given the following rotation matrix $$\left[ \begin{matrix} -1/3 & 2/3 & -2/3 \\ 2/3 & -1/3 & -2/3 \\ -2/3 & -2/3 & -1/3 \\ \end{matrix} \right]$$ ...
781 views

### Overlaying scatter points over world map in MATLAB [on hold]

I am facing difficulty overlaying lightning location data over a region of the world map. I have lightning location data where the first column contains longitude and the second column latitude. I ...
22 views

13 views

### what is the ZYZ euler angle representation,(ψ, θ, ϕ), for a given matrix in MatLab?

I want to know using matlab what is the ZYZ euler angle representation,(ψ, θ, ϕ), for the following rotation matrix? \begin{pmatrix}0.6927&-0.7146&0.0978\\ \:0.7165&0.6973&0.0198\\ \:-...
34 views

### Generate two matrices such that multiplication of these matrices results a symmetric positive definite matrix

I want to generate a tall&skinny matrix and a fat&short matrix, such that multiplication of these matrices results a symmetric positive definite matrix. My inefficient/expensive solution is: ...
35 views

### Delaying signals in Matlab

I'm new to MATLAB and have a question that I need help on: The problem I have is to plot the simple signals: a 1Hz Sine wave, a standard rectangle function and a standard triangle function Here is ...
160 views

### Least-squares problem with quadratic equality constraint

I want to find the solution of a Lagrange equation whose inputs are matrices. First I have the equation Ax=0. By decomposing $A$ into $A_3$ (columns 9 to 11 of A), $A_9$ (the rest of the columns), ...
1k views

### convex hull function in matlab

Is there any way to compute the convex hull of a finite set of points in Matlab and gives the half-space representation as its result? I usually use a toolbox called MPT developed at ETHZ Zurich, but ...
1k views

### How to calculate the hessian of a matrix function

I am estimating a model minimizing the following objective function, $M(\theta) = (Z'G(\theta))'W(Z'G(\theta))$ $Z$ is an $N \times L$ matrix of data, and $W$ is an $L\times L$ weight matrix, ...
24 views

### MATLAB: how to include running time on a graph? [closed]

I have a MATLAB/Octave program for which I used the tic and toc functions to measure the time elapsed for some calculations. e.g....
13 views

2k views

### Chi square goodness-of-fit test for Uniform distribution using Matlab

I need to test random numbers generators in 1, 2 and 3 dimensions. Criteria of test is that generated numbers are from uniform distribution. I am doing this using Matlab. I'm told to use Chi-2 test ...
864 views

### Plotting discrete time signals involving sumations in matlab.

Many of the examples I've encountered while looking for an answer are simple functions that do not involve summations. Suppose I have the following function; ...
12 views

### Did I implement a log-normal distribution incorrectly?

I have a bunch of data relating to the lengths of certain objects. I found out that the log of these lengths are somewhat normally distributed, so I used a lognormal distribution to approximate the ...
1k views

### How can I write an SDE in Matlab?

My professor would like me to solve a system similar to the following: $$dx_i=[f_i(x_1,x_2,...x_n)]dt + g_ix_idW_i$$ Where $g_i$ are positive constants that measure the amplitude of the random ...
33 views

### Creating nearest neighbors Laplacian matrix

I want to create a general formula for an $N \times N$ nearest neighbors Laplacian matrix such that I can write an mfile in MATLAB to compute the matrix for given $N$. The nearest neighbors Laplacian ...
17 views

### Inital condition for 1st order derivative

I have a PT2 system filter, Y'' = (a0)*Y'+(a1)*Y+(b)*u. I want to apply this filter to my signal, i have a problem in deriving ...
Assume that you have a circle with radius $r_0$, then you keep adding cosine modes as below: $r=r_0+a_1\cos(1\theta)+a_2\cos(2\theta)+a_3\cos(3\theta)+a_4\cos(4\theta)+~...$ if you plot this as ...