Answered
inversing huge Y Matrix
As always, I'll start by saying that computing the inverse of a matrix is a bad idea. And of course, you don't say what you thin...

2 years ago | 0

Answered
How can I solve this implicit function in MatLab?
Trivial, in some eyes. ;-) This is one of the simpler implicit problems you might write down, since a direct solution exists in ...

2 years ago | 1

| accepted

Answered
How to add unknow parameter in matrix and solve it by use det() syntax for finding w
syms w; m1 = 1.8; m2 = 6.3; m3 = 5.4; m4 = 22.5; m5 = 54; c2 = 10000; c3 = 500; c4 = 1500; c5 = 1100; k2 = 1*10^8; k3...

2 years ago | 0

Answered
solving linear systems of equations
A long forgotten question and one with an answer that may not be appreciated by @Chloe St John, given that multiple questions by...

2 years ago | 0

Answered
MathWorks Administrator Account Privileges
Contact customer support at MathWorks. That is not Answers. We cannot help you directly. https://www.mathworks.com/support/cont...

2 years ago | 0

Answered
When integrating acceleration do you need to convert velocity?
When you keep on subtracting off the mean, you do strange things to the result. But you need to consider what a constant of inte...

2 years ago | 0

Answered
How to efficiently solve a system with an infinity number of solutions?
Note that a solution need not always exist for all n. When n==1, and so A is a 1x1 matrix, it is completely known. So unless yo...

2 years ago | 0

Answered
How can I calculate the integral of Legendre function P(n,theta) ?
@Shreen El-Sapa I think you do not understand that a Legendre polynomial is meaningless over some other interval. It has no spe...

2 years ago | 1

Answered
Create a matrix and a map of Hydrologic Soil Group values using integer or character values
MATLAB does indeed allow you to produce a character matrix, with those characters. However, I assume you have scattered data, wi...

2 years ago | 0

Answered
Determine row vector out of matrix with most evenly spaced and distributed values
Simple. Sort of. But you need to define what equal spacing means to you, and how you will measure the deviation from equal spaci...

2 years ago | 0

| accepted

Answered
Are polyshape vertices preserved reliably without floating point errors?
Um, probably, yes. But potentially no. Yes, because on most operations, you will just be indexing into the original set of vert...

2 years ago | 1

Answered
Integrate function by for loop
As always look carefully at your code. Learn to use the debugger. It would tell you the problem, and in which line there was a p...

2 years ago | 0

Answered
matrix, where each element is a column vector
You don't need a cell array at all! Just use a 3-d array. A = randn(11,7,1001); Now to compute the max in each vector, just u...

2 years ago | 1

Answered
inverser la matrice tri-diagonale
As much as I hate the suggestion, you could trivially use inv. ;-) Better would be to use sparse matrices. That is, learn to us...

2 years ago | 0

Answered
Solve long matrices equation
This is a classic algebraic Ricatti equation. https://en.wikipedia.org/wiki/Algebraic_Riccati_equation How do you solve it in ...

2 years ago | 0

Answered
fminsearch doesn't converge to the right value
These things are always easier than you think. Well, except when they are just as hard as you think. ;-) First, I'll create x a...

2 years ago | 1

| accepted

Answered
How to use a variable from script in a function that is in another script
Just create your function like this. In my example, k3 and m3 will be assigned, so that you can see how it works. k3 = 3; m3 =...

2 years ago | 0

Answered
How do I lower an image quality?
There are other ways to lower image quality. Several ideas have already been mentioned. Resize the image, then expand it back u...

2 years ago | 1

Answered
I am struggling trying to figure out this code I have it completed but I keep getting errors, can you help?
I need to laugh (sorry, but it is true) every time I see someone claim they have completely written a long piece of code, and cl...

2 years ago | 0

Answered
Finding intermediate points between two cartesian coordinates in 3D
You cannot find ALL the points between any pair, in any number of dimensions. At best, you can describe the set of all such poin...

2 years ago | 1

| accepted

Answered
How to find the point that resides on a contour that is closest to a known point?
You can't. That is, you cannot use calculus to do this, at least not as it is, not directly. That contour is a set of piecewise ...

2 years ago | 0

| accepted

Answered
i want to solve 3 non linear equations in matlab
You can want anything you want. I, for example, want to see peace in the world, with everyone treating everyone else as an equal...

2 years ago | 0

Answered
I need the installer for Matlab R2010b SP1
We cannot help you. Answers does not have software, cannot supply it. The only people who would be able to help you are at MathW...

2 years ago | 0

Answered
problem with genetic algorithm
Clearly, your constraint function is not evaluating as a real number. It is likely complex, based on the error message. (Though ...

2 years ago | 0

Answered
fsolve stopped because the last step was ineffective
This is a common mistake I see being made. You have a problem that has symmetries in it. x(1), x(2), x(3) all play similar parts...

2 years ago | 1

| accepted

Answered
Accessing a vector form a matrix
As an example, given vectors x1,x2,x3. I'll make some up. x1 = randi(10,1,5) x2 = randi(10,1,5) x3 = randi(10,1,5) Combine t...

2 years ago | 0

Answered
Find the variable inside the LCM argument
You have the expression: B=lcm(nrt,Nr*Nc) where the variables B and nrt are known. The unknown variable is the product nr*...

2 years ago | 1

Answered
volume calculation from the DelaunayTri(x,y,z) function
Its not THAT hard. You compute the volume of each simplex in the tessellation. Sum the absolute values up. (Since those simplexe...

2 years ago | 1

| accepted

Answered
is there any reason for this?
Is there any reason? Well, does there absolutely need to be a "reason"? These are a set of choices, made over a period of multip...

2 years ago | 1

| accepted

Answered
find a zero of a two-variable function
A two variable function is a surface. (@Sam Chak said this, but did not take the idea to the point of completion.) But if a sur...

2 years ago | 0

Load more