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

learn more… | top users | synonyms

0
votes
0answers
31 views

How to solve this ODE numerically?

I have a question about how to solve this ODE numerically: $$\frac{C}{4}y'^2+\frac{C}{4}y''y+(0.098)^2y''y'''=0$$ where $C$ is a constant and the initial conditions are $y(0)=y''(0)=0$ and $y'(0)=1$. ...
0
votes
0answers
9 views

Plotting Non Linear Programming functions

I define these functions in Matlab: ...
0
votes
2answers
26 views

Matlab Monte Carlo Method Volume Calculation

The question: use the Monte Carlo method to find the volume of intersection of, three cylinders, all of radius 3 units and infinite in length,with the axis of the first cylinder being the x-axis, the ...
0
votes
0answers
44 views

Finding $Q$ for any $A$ s.t. $QAQ^\top = I$

Given an invertible and PSD matrix $A$, I am looking to find $Q$ such that: $$ QAQ^\top = I $$ What is a/the right/efficient way to do this? Here is what I did: SVD gives $$ A \approx U S V^\top ...
0
votes
1answer
25 views

How to solve the eigenvalues of a complex matrix of very high condition number?

WHAT I FACE: I'm dealing with a complex matrix of very high condition number and I have to solve the eigenvalue and eigenfunction of it. But in Matlab, I got the problem that the results are not ...
-3
votes
0answers
19 views

How I can write function for S-strictly diagonally domainant in Matlab [on hold]

I want to write a function that checks whether a matrix is $S$-strictly diagonally dominant for some set $S$. For a subset $S \subset \{1, \dots, n\}$ one calls the matrix $S$-strictly diagonally ...
0
votes
0answers
15 views

Early termination of simulation [on hold]

I am trying to simulate a communication system. My program takes noise variance as input and should output the results for fixed number of trials. My problem is that for few noise variances, the ...
0
votes
1answer
28 views

Using the Monte Carlo method to find a volume

Use the Monte Carlo method to find the volume of intersection of, three cylinders, all of radius 3 units and in finite in length,with the axis of the first cylinder being the x-axis, the axis of the ...
1
vote
1answer
45 views

Trouble with derivatives using Newton-Raphson in MatLab

I'm finding it very difficult to get my head around how best to express the following system of equations in MatLab in order to solve it. The equations come from Von Karman's similarity solution to ...
1
vote
0answers
4 views

Can low order methods for solving ODEs be non-stiff if high order methods are stiff? [on hold]

I'm trying to solve a an ODE system (1000 equations) on Matlab. I want to check the difference between the solution provided by the ODE45 solver of Matlab and an implementation of the same equations ...
-3
votes
0answers
14 views

Faber polynomials in Matlab [on hold]

I want to compute some faber polynomials associated to an ellipse centered at a point \sigma (in the complex plane) in Matlab. Say the ellipse has minor axis a and major axis b. If someone know how to ...
-4
votes
1answer
26 views

Write the funcation in Matlab [on hold]

I can not write this in Matlab (SDD is strictly diagonally dominant matrix ) Write the following functions in MATLAB : issdd(A) results in 1 if A is an SDD matrix, 0 if not and NaN if A is ...
1
vote
1answer
38 views

Can not build a phase space for simple oscillator

2 question is: how to move out the particle from the potential well? I am stuck on a problem that I have a simple harmonic oscillation for which I want to draw a phase space. I can do this inside the ...
0
votes
0answers
12 views

building a custom matrix in matlab and then using imshow function [on hold]

Hey there i am currently doing a project for university and need some help with matlab as this is my first big project with it. I am trying to build a custom shape as shown below on Matlab and then ...
0
votes
0answers
17 views

How to define a unimodal function?

I am doing MATLAB assignment in which I need to find the minimum of a given 3D function. It is more or less guided, but I'm confused on what one step means: a. First, write a function that will ...
-5
votes
0answers
38 views

Write the following functions in MATLAB [closed]

I can not write this on matlab Write the following functions in MATLAB (references to equations are from the book of R. Varga): 1. 2. issdd(A) results in 1 if A is an SDD matrix, ...
0
votes
1answer
12 views

Regression project in octave/matlab

I'm trying to establish a polynomial model to adjust the variation of the dollar throughout the year. Suppose hypothetically that I have the following data ...
0
votes
1answer
27 views

Plotting piecewise functions on MATLAB [closed]

I wish to plot the piecewise function onto MATLAB: The interval I am concerned with is [-5, 5]. $$f(x) = 2x \text{ if } -5 \leq x < -3 \text{ and } 3 < x \leq 5$$ $$f(x) = 4 , -3 \leq x \leq ...
1
vote
1answer
26 views

Why do I get complex convergence?

I have problem with understanding why I get the complex convergence when using Newton-Raphson's method (own implemented) to the convergence tables down below: ...
-1
votes
0answers
16 views

matlab-Gershgorin and His Circles [on hold]

I can not write this in matlab use function from the book of Richard S.Varga :Write the following functions in MATLAB (references to equations are from the book of R. Varga): 1. issdd(A) results in 1 ...
0
votes
1answer
62 views

Solving a system of two second order ODEs using Runge-Kutta method (ode45) in MATLAB

I'm trying to solve the system of differential equations outlined in Von Karman's rotating disk flow. I got them into a system of ordinary differential equations: F(n), G(n), H(n) $$F'' = -G^2 + F^2 ...
-1
votes
0answers
36 views

How to formulate the following problem as a SDP problem

I am struggling with the following optimization problem: maximize $\mu$, subjected to $\left(\begin{array}{ccc} 4\mu-(2\alpha_{10}+2\alpha_{5}+\alpha_{2}+\alpha_{8}) & 0 & 0\\ 0 & ...
0
votes
1answer
24 views

How do I determine the transfer function of a plant?

I sitting here with a system which I have to determine the transfer function. The unit receives a velocity and position, and move towards that position with the given velocity. What kind of test ...
0
votes
1answer
42 views

N body ODE simulation

I have been staring at the below matlab code, which simulates planetary motion, for a while now and I could really use a fresh set of eyes. I cannot understand why it is giving straight line ...
-1
votes
0answers
15 views

Band Periodicity

this is one of sounds features and it has been used in some AI voice app. "The periodicity property of each sub-band is represented by the maximum local peak of the normalized correlation function." ...
1
vote
0answers
30 views

Problem with plotting a differential equation

I have problem with plotting an differential equation that is as following: $$ \frac{d^2y}{dx^2} + \pi y e^{x/3}\big(2\frac{dy}{dx} \sin(\pi x) + \pi y\cos(\pi x)\big)=\frac{y}{9} $$ where the ...
1
vote
0answers
26 views

Eigenvalues and eigenvectors for earthquake modeling

My instructor explicitly stated that, because we are asked to find eigenvalues and eigenvectors of a $7\times 7$ matrix, MATLAB would be easiest to use. The equation $(1)$ is intended to resemble ...
0
votes
0answers
28 views

Average in array MATLAB [closed]

I have the following four arrays the First array the first one is the original array it is called temp1 it has one row with two columns the first column is for the row and the second one for the ...
0
votes
1answer
30 views

Coefficients of a linear combination

Suppose I have a vector space $V$, with $\{\vec e_1, \ldots, \vec e_n\}$ forming a basis of $V$. Also, suppose that I have a vector $\vec x \in V$, which I want to express as the unique linear ...
-1
votes
0answers
27 views

delete expressions in symbolic computation [closed]

I am using matlab to do symbolic computation. The question is how to eliminate expressions with even coefficients, such as 2*xyz or 4*x, since they are all 0 on GF(2). The function "subs" is not ...
0
votes
0answers
18 views

Help understanding Jacobi SVD

I found this link, and I want to complete this implementation of the Jacobi SVD method, but it isn't clear to me how to implement alpha, beta, and gamma. I think it's very clear that ...
0
votes
2answers
24 views

Assigning values to a vector in Matlab [closed]

I have this Matlab code: ...
0
votes
0answers
11 views

Angle between two lines formed by intersection of two planes with X = 0, Y = 0 and Z = 0 planes

I am new to linear algebra and have been struggling with a solution for this since long. I work on MATLAB. I have a set of points (as in Points3D.mat attached here). I find the equation of best fit ...
1
vote
1answer
25 views

First order non-linear ordinary differential equation

The following ODE is given: $a\pm\sqrt{b+c*(x(t)+d))}=e*x'(t)+f*x(t) $ from Matlab I'm able to get a solution for the differential equation (actually two solutions, one for the + and one for the - ...
0
votes
0answers
14 views

How to compute this convolution in matlab?

The equation is as above, where $f_x$ and $f_y$ refer to axises in frequency domain, $x$ and $y$ refer to axises in space domain and $F$ refers to Fourier transform. My main problems lie on 1) how ...
0
votes
0answers
8 views

Generating volume constrained splines

Suppose I have a set of points in $\mathbb{R}^3$, $\{\vec{r}_1,\vec{r}_2, ...,\vec{r}_n\}$, suppose between points $\vec{r}_i$ and $\vec{r}_{i+1}$ there is an associated volume $V_i$. I want to ...
0
votes
0answers
18 views

What must probably be a very simple graph plotting in MATLAB

I've only recently started using matlab so I apologise for my inexperience but I am struggling with the last part of my assignment in which I need to plot different graphs in which my variable 'N' ...
4
votes
1answer
46 views

Did I do something wrong solving this PDE in MATLAB?

I have the following PDE problem on a practice exam: I have completed the problem using MATLAB to the best of my ability. Here is the code I used ...
2
votes
2answers
76 views

Fourier Decompositon

have a look at this video of Fourier Decomposition of an image (otherwise you can also refer the image, which shows few plots of different extracted waves from an image). We also know that a Fourier ...
1
vote
1answer
42 views

Roll PID Control for quadcopter

I'm trying to implement with simulink a PD controller for my quadcopter. I use a simplified model, and for the roll case I have $ I_x * \phi = L $, where L is the roll torque. So, the transfer ...
0
votes
0answers
22 views

Matlab's for Genetic Algorithm Issue

...
1
vote
0answers
9 views

Is there any reason that cross correlation would perform well or poorly on sparse binary arrays?

I am using matlabs xcorr to correlate simulated photon count data that has some Gaussian random noise set on top of it and it is working fine when the average value in the arrays is greater than one ...
-1
votes
0answers
30 views

fast computation of complete elliptic integral matlab

I'm using matlab to compute complete elliptic integrals of first ($K$) and second kind ($E$). I'm having an issue with computational speed evaluating these integrals using matlab function ...
0
votes
1answer
9 views

tridiagonal matrix with a corner entry from upper diagonal

I am trying a construct a matlab code such that it will solve an almost tridiagonal matrix. The input I want to put in is the main diagonal (a), the upper diagonal (b) and the lower diagonal and the ...
1
vote
0answers
15 views

0ut-of-sample variance (rolling window) [closed]

My objective is to calculate out-of-sample variance of various portfolios. I am currently working on the comparison of the constructed portfolios using out-of-sample variance criteria. I am going to ...
0
votes
0answers
20 views

Applied Linear Algebra | Linear Dependent Matrix [duplicate]

My response: Am I correct in my approach? Thank you for your help.
0
votes
0answers
32 views

probability of collision approximation,matlab,maple

I'm working in the field of communication network. I have this equation p=((1-(1-(((2.*(1-2.p))./(1-p-p.(2.p).^m)).(1./Wi))).^(n-1))) I want to solve for p, but I failed(maple and matlab), can ...
1
vote
0answers
29 views

How should I rewrite this code to not use feval? [migrated]

I recently finished a homework set in my Applied Numerical Methods class and did alright on it. However, my professor made a note to say I shouldn't use the feval() function because it's outdated. ...
-2
votes
1answer
23 views

Create matrix of coefficients in matlab

I have written a function that creates a matrix based on a polynomial of a given degree. I will ultimately use this to fit data, but the problem I am having is that I can not find a good way to create ...
1
vote
3answers
54 views

Converting nonlinear second order ODE to first order

The second order ODE is: $$ y'' + ky' + (mg/c)\sin(y) = 0 $$ $k$, $m$, $g$ and $c$ and constants. What is the first order ODE and how do I do it?