Answered
Does dsolve benefit from multiple cores?
In general, no. No tools in the symbolic toolbox that I know of are currently set up to employ multiple cores. I might have miss...

3 years ago | 2

| accepted

Answered
Left division with partially known coefficient
If you have this relation, y=0.5*x/(d*K)+x^2/(d*K)^2 where d is known but K unknown, then write it as: y = (0.5/d)*(x/...

3 years ago | 0

Answered
Integral of matrix determinant
For this specific problem, I might just suggest that the determinant of an upper triangular matrix is just the product of the di...

3 years ago | 0

Answered
Absurd result using 'integral2' with non-"centered" functions
Why should you be surprised? Integral and integral2 are tools that look at your function as a complete black box. A black box i...

3 years ago | 0

Answered
Using colormap to graph function of three variables
Could you? I suppose, in theory, you could. But it would not make a lot of sense. The problem is, suppose you have all different...

3 years ago | 0

Answered
I want to make an identity matrix
These are starting to look like homework questions. Did you not read the answer to the last question you asked? You could not u...

3 years ago | 0

Answered
I want to show r^2 and the poly1 ec on the plot
Read the help for fit! Look at the second argument it can return. You don't give me enough information (what is dtr, for example...

3 years ago | 0

Answered
Error on spline function
Splines cannot be buit from integer data. They also cannot be symbolic. So possibly you are trying to interpolate a logical vect...

3 years ago | 0

| accepted

Answered
i want to make identity matrix
For only 3 blocks, it is simplest just to do this. A = blkdiag([1 1],[1 1],[1 1]) Or, you could do this, if you have more than...

3 years ago | 1

Answered
Why I couldn't plot this graph f=(@(x,y) (x.^2)+(x*y)+(y.^2)<=68200.^2/3);
The issue is, tools like fimplicit do not plot inequalities. That is, if there were an equality in there, then this would be a p...

3 years ago | 0

Answered
Can I use the file exchange program triangulationVolume publically even though it has no license?
The file is found at: https://www.mathworks.com/matlabcentral/fileexchange/15221-triangulationvolume?s_tid=ta_fx_results I see...

3 years ago | 0

Answered
How to use binomial expansion to produce correct results?
How? Using double precision arithmetic? You often can't. You need to remember that double preciion arithmetic lives in 16 signif...

3 years ago | 0

| accepted

Answered
How small is Zero?
It is easy for that to happen. Of course, you don't actually tell us WHAT test you did. But this just means you have an event ou...

3 years ago | 1

| accepted

Answered
Lagrange multipliers in constrained nonlinear optimization
Let me give a simple example, showing why solve is a poor tool for such a problem. minimize x^2 + y^2 + z^2 subject to x...

3 years ago | 0

Answered
Solving a system of second order ODE backwards
Easy, peasy. For example, solve the ODE y' = sin(t) subject to the initial condition, that at t==1 we have y(1)=1/2. Now ...

3 years ago | 1

| accepted

Answered
Interpolated points to be at a certain equal angular distance
Simple. Without even looking at the plots, first... The curve is not closed. You are clearly using code I wrote, but now fittin...

3 years ago | 0

Answered
Hermite polynomial method, incorrect coefficients
I could swear I answered this question only recently. Maybe not for you, and I don't feel like a search through the many thousan...

3 years ago | 0

Submitted


randpoly
Generate N uniformly distributed points inside a supplied polygon (or polyshape)

3 years ago | 1 download |

0.0 / 5
Thumbnail

Submitted


allcrossings
Locate all intersections of a pair of functions f1 and f2, on a finite domain

3 years ago | 1 download |

0.0 / 5

Answered
How to randomly generate point cloud in irregular range?
It is not at all clear what you are looking to do from your question. But I believe you are asking how, given a 2-dimensional ar...

3 years ago | 1

| accepted

Answered
RMSE - Root mean square Error
UPDATE: Starting in R2022b, you can now calculate Root Mean Square Error using the built in MATLAB function ‘rmse’: https://www....

3 years ago | 24

| accepted

Answered
Where should I add a continue command to skip prime numbers less than 10?
This does not work? I'm surprised. ;-) Did you want to count those primes too? You do not say. For example, this will not count...

3 years ago | 0

Answered
How to generate a diagram illustrating the relationship between several nested functions?
You are asking for what is essentially a high level flow chart, produced automatically from existing MATLAB code, that shows how...

3 years ago | 0

Answered
dsolve: Number of equations greater than number of indeterminates. Trying heuristics to reduce to square system.
Is ode1 a differential equation? (NO. ode1 is an algebraic relationship between the variables.) For example, conside this simple...

3 years ago | 0

| accepted

Answered
How to find (interpolated) zeros in a data array
There is no assurance that interp2 and contourc are using identically the same scheme for interpolation. Even in the case of "li...

3 years ago | 0

Answered
Getting equation for a interpolated spline using csaps
I'll post this as a separate answer, since I did not use a spline at all to build the model, and so it does not get lost in the ...

3 years ago | 0

| accepted

Answered
The MATLAB function to solve implicit equation
Assuming your question is how to solve the equation [m^2 /( 3(a+a0)^2)] * (2 * k1 + 3 * k2) = a0 * (2/v1 + 5/v2) I removed...

3 years ago | 0

Answered
Getting equation for a interpolated spline using csaps
Can you get the spline equation? No. There is no simple equation you can write down. Or, if you could write it down, it would in...

3 years ago | 0

Answered
how to filter the noise of a signal
This is probably a good task for a median filter. load matlab.mat whos plot(F) Fhat = medfilt1(F,100); plot(Fhat) Larger v...

3 years ago | 0

Answered
Finding all the positive Roots of non linear equation and plotting the modes
Of course, this would have been for homework, so there is not really much point to posting this answer. Oh well. I will anyway, ...

3 years ago | 0

Load more