# Questions tagged [matlab]

For mathematical questions about MATLAB; questions purely about the language, syntax, or runtime errors would likely be better received on Stack Overflow. MATLAB is a high-level language and interactive programming environment for numerical computation and visualization developed by MathWorks.

3,070 questions
Filter by
Sorted by
Tagged with
7 views

• 274
1 vote
37 views

16 views

• 154
13 views

### Batch Interpolation of Several Curves with Discontinuities

I am starting with several points that each belong to a unique curve. I know a-priori what points belong to what curves, and I have placed the points in the order in which they trace their individual ...
8 views

### MATLAB Least Squares Regression Trig Fit

I'm trying to make a best-fit trig function for daily temperature data (some .csv files written via python3). I am using the Cholesky method in MATLAB, but for some reason my best-fit function is not ...
1 vote
58 views

### Computationally efficient way to find a $2 \times 2$ matrix [closed]

I have two matrices $A,B \in M(\mathbb{Z}/255\mathbb{Z},n)$, where $M(\mathbb{Z}/255\mathbb{Z},n)$ is the set of the matrices of shape $n \times n$ and coefficients in $\mathbb{Z}/255\mathbb{Z}$, and ...
• 565
1 vote
21 views

• 1,008
58 views

### Can we obtain $\sum_{i=1}^n a_i$ from $\sum_{i=1}^n \log a_i$?

Is there a way to obtain $\sum_{i=1}^n a_i$ from $\sum_{i=1}^n \log a_i$? Actually I am trying to compute $\sum_{n=1}^{1000} n!/n^n$ using matlab, but since $n!$ and $n^n$ grows too fast as $n$ ...
• 2,034
37 views

### Numerically solving a PDE in Matlab: Eikonal in an exponential formulation and initial/boundary conditions

I am currently working on a small research project as a part of my degree. The project is centered around Continuous-time Markov Chains, and based on this paper : https://hal.archives-ouvertes.fr/hal-...
39 views

### Crank Nicolson method error analysis

I am trying to solve the diffusion PDE: $$\frac{\partial u}{\partial t} = \alpha \frac{\partial^2 u}{\partial x^2}$$ using the CN discretization. I have implemented the method in Matlab, quiet ...
• 308
10 views

### How to remove "root(f(z), z, n)" from solve solution in MatLab

Wondering if it is possible to remove the expression "root(f(z), z, n)" from the solution presented by the solve function. In this case, my code is listed below and the outputs of "...
30 views

### How to find the value that give the global maximum of a function?

I have got the following function: $$L(x,y) = \frac{(16.2x +0.9y+5.2)^{24} e^{-(16.2x +0.9y+5.2)}}{24!} \cdot \frac{(2.1x +4.2y+0.9)^8 e^{-(2.1x +4.2y+0.9)}}{8!} \tag{1}$$ and I am attempting at ...
• 45
I'm a Lagrange newbie, bear with me. I want to minimize $x^2+y^2$ subject to $x(x-1)(x+1) = 0$ and $y(y-1)(y+1)=0$. This problem has a single global minimum in (0,0). The Matlab code I wrote looks ...