# 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 ...

43 views

12 views

### Integrate a multivariable funtion w.r. to one variable or make triple improper integral

I am using Matlab 2010Ra and I want to do triple integration on my function below: My function (first Fock state): $$\psi(x) = \frac{1}{\pi^{\frac{1}{4}}} e^{-\frac{x^2}{2}}$$ In fact I have a ...
14 views

### how do I find out the speed at which an equation changes it's direction to come up with an appropriate interval for my Bisection method

I want to use bisection method to find all roots of an equation within a given domain. my algorithm logic is very simple , divide the given domain into sub domains such that for any given sub-domain ...
23 views

### How do i write a matlab code that asks to input a funtion, and then uses that function in the rest of the program? [on hold]

I want to write a matlab code that asks for us to enter a function, number of iterations and two endpoint values , and then uses bisection method to solve for the roots of the function. I have looked ...
32 views

### help with finding roots using excel or matlab

I've been asked to finding the roots of the equation $x^3-6x+2=0$. They've called it the 'pivot method' but I can't seem to find the 'real' name of it. I've looked at secant, newton, bisection etc... ...
31 views

### Searching for a program to evaluate linear equations

I have a mechanical / geometrical system that is defined by certain equations. For some variables, I know that they are known, some of them are constant. I would like to have a software (freeware) ...
22 views

### creating a loop and maybe a potential loop within a loop in matlab [closed]

I'm extremely new at Matlab so would like some help. I'm trying to create a loop and maybe a loop within a loop, I'm not too sure at the moment but here's what I'm trying to achieve. I began with ...
25 views

22 views

### Exponential curve fit with MATLAB's fit function does not deliver good fit

I am trying to use MATLAB's fit function to fit a curve through a data set which obviously shows an exponential decay. These are the commands I use: ...
43 views

### Comparing $f(x)$ and the $f\_approx(x)$ in Matlab, Octave or Mathematica/Wolfram

I have a function $f(x)$ and I wrote the approximation for $f(x)$ as $f\_approx(x)$ which is a simple algebraic formula with sums and products . I now want to study the 2 functions side by side and ...
26 views

### matrix multiplication result value range

Here is the initial question: About the output value range of LeGall 5/3 wavelet Today I found actually the transform can be seen as a matrix multiplication. It is easy to calculate the wavelet ...
22 views

### The range of the coefficients of 2 level Wavelet LeGall 5/3 2D transform

As in the title, I am confused about the range of the coefficients of Wavelet LeGall 5/3 (has to be exact this filter) 2D transform (only for a 8*8 block) if the value of the input matrix are within ...
13 views

### Continuously Delayed DDE

I am interested in solving numerically a system of six differential equations of the form: $$\frac{d\psi_{i}}{dt}=f(\psi_{j=1,...,6},\int_{t-\tau}^{t}\psi_{i}(t')dt')$$ I have read about DDE's (...
26 views

### The problem of ksdensity plot in Matlab

I want to verify that random numbers generated by exprnd match the exponential distribution. I used Matlab's ksdensity function –...
15 views

### Zero-centering a kernel matrix?

I'm trying to implement the algorithm in this paper. As you can see at page 4, it is explained how to 0-centering a pxp symmetric Kernel matrix ...
17 views

### Operator Splitting, Piecewise Function, ODE,PDE,Matlab code [duplicate]

$t_f=1$ $$y(t) = \begin{cases} e^{2t},& 0 \le t \le t_f/2 \\ 2\left(t-\frac{t_f}{2}\right)+e^{t_f} , & t_f/2 \le t \le t_f \end{cases}$$ How can i write this piecewise function in ...
14 views

### Square Root of a matrix: transpose or inverse of eigen vectors?

Here is described that the square root of a matrix is defined as K^1/2 = V*D^1/2*V^-1 At the end of scetion 4 of this paper we can see W = K^-1/2es In the ...
30 views

### how to use matlab to calculate double integration?

I want to use Matlab to verify the result of double integration. $$\int_{-w}^{w}\int_{l}^{x}e^{ay}\space dydx$$ I tried this one ...
11 views

### Fitting to a convolution function in MATLAB

I have a set of spatial intensity curves that I believe arise from the convolution of a flathat beam intensity profile with a normal distribution curve (or set of normal distribution curves) that are ...
26 views

### using pinverse vs gauss-jordan to solve a possibly singualr system of linear equations?

so i have a possibly singular coefficient matrix A . (it's sometimes singular and sometimes not !) (in the case of singularity it has many solutions we only need one) i know using an inverse to find ...
8 views

Suppose we have a function $F(\lambda) = \int\limits_{\lambda}^1 f(x) dx$, where $f(x)$ has no formula for antiderivative. We can easily calculate it by means of build-in MATLAB functions. Let's use $... 0answers 28 views ### Plotting$\sum_{n\geq 1}\frac{1}{n}z^{n}$for$|z|<1$(the natural boundary): Coding As part of my tutorial, I would like to show the plots of a)$-\sum_{n\geq 1}\frac{1}{n}z^{n}$and b)$Log(1-z)=log(|z|)+iArg(z)$, to drive home the point of analytic continuation. Plotting the Log is ... 1answer 23 views ### Plotting flux tubes on the surface of a sphere on matlab I've been given the task to plot two flux tubes on a surface of a sphere, where one of the tubes twists around the other (to model magnetic helicity). I know how to generate a sphere in Matlab, and ... 0answers 9 views ### Specifying Correlation Within Clusters So, I am looking to generate data which is correlated at a group level with a specified level of correlation. That is, suppose if I drew a certain number of$y_{ig}$observations from the standard ... 3answers 70 views ### Find equation for line segment I already know that the standard equation for a line is$y=mx+b$, but what if i want the line to have specific endpoints and not go on forever. For example the equation for a line beginning at$(3,1)$... 3answers 190 views ### Minimizing$\|Ax\|_2$subject to$\|x\|_2 = 1$I have a Matlab program to estimate a vector$x$from noisy measurements. I use the singular value decomposition (SVD) to solve the linear equation$Ax=0$(where the number of equations is greater ... 0answers 15 views ### How to get best fitting model decision for data X and Y in e.g. Matlab? I have two sources of data, X and Y, which are basically counts, from 23 individual origins (3D ROIs in my case). For example: ... 0answers 9 views ### Phase correlation vs. normalized cross-correlation In 2-dimensional discrete signal analysis (specifically image processing), a definition I found for the normalized cross-correlation between two images, both of size MxN$g_1(x, y)$and$g_2(x, y)$is:... 0answers 23 views ### Design with Matlab the equation of the position of a drone I want to design with Matlab the equation of the position of a drone which is$u=m(\ddot z_{des}+K_pe+K_v\dot e+g)$where$e$and$\dot e$can be calculated from the current and desired states$(z,...
Given a variable $x$ defining the position of a drone, $\dot x$, its velocity, how do we find its acceleration $\ddot x$ in mathlab? I know that we can found the solution of a differential equation ...