Answered
distance from point to plane (plane was created from 3d point data)
You need to understand what the equation of a plane tells you. A plane is defined by a point on the plane (P0), and the norma...

9 years ago | 0

| accepted

Answered
Error using save Unable to write file generation: permission denied.
You lack write access in the current directory. So either change the privileges in that directory, or you need to CD to a dir...

9 years ago | 2

| accepted

Answered
Hello all, I am trying to analyze a nx3 matrix, find all rows that have matching col 1 and 2 values, and then choose the row that corresponds to the maximum col 3 value...
Q = [1 2 63; 1 2 5; 5 6 7; 5 6 33; 1 3 3; 1 3 20]; [Q12,Q3] = consolidator(Q(:,1:2),Q(:,3),@max); [Q12,Q3] ans = ...

9 years ago | 0

| accepted

Answered
how to add n number of (3*3)matrixes
Don't add N matrices. Don't even store lots of such matrices separately. Store them in ONE 3x3xN dimensional array. You can a...

9 years ago | 4

Answered
How to create a smooth curve through data points?
The question is, do you have knowledge of this process? Well, everybody knows something about their data, about the underlying s...

9 years ago | 3

Answered
How do I plot a line rather than seperate points?
Don't plot each point, ONE at a time. You cannot easily connect a new point to the last. (Well, you could do it, but it would be...

9 years ago | 0

| accepted

Answered
How to replace all the ones in a matrix with the string 'hey'?
You can't. A matrix is composed of numbers. You cannot insert a string for some elements, replacing an arbitrary numeric element...

9 years ago | 0

Answered
Area of Blob(s) after Step(Blob, Mask) command?
Of course, we don't know how you computed the area of those blobs or even if you did indeed compute the correct areas. People ma...

9 years ago | 1

Answered
May I have some Matlab stickers?
I think the usual answer is they don't sell stuff like that. TMW does not have a store where they sell MATLAB branded "stuff", n...

9 years ago | 0

Answered
Why this is plotting blank window?
What is f as you generated it? f f = Columns 1 through 28 NaN Inf Inf Inf Inf Inf Inf Inf Inf I...

9 years ago | 0

Answered
Finding the sum of a series which is dependent on t.
I assume you have you defined t as symbolic, and that k and omega are also defined properly, either as known constants or as sym...

9 years ago | 1

Answered
solving the equation A*transpose(A)=B
You cannot. Well, there are infinitely many equally valid solutions. So you can. There just is no unique solution. In fact, t...

9 years ago | 0

| accepted

Answered
How I create a non-equal restriction for GA problem?
Essentially, you cannot. Or constraints are not an option for any optimizer, including GA, thus x1>x2 OR x1<x2. And you cannot h...

9 years ago | 0

Answered
How to find and plot the curvature of a function in matlab?
I'm not sure why you are using gradient here, instead of the simpler diff. And, by the way, if you pass these codes only a li...

9 years ago | 0

Answered
Why eig() function gives eigenvectors rapidly? what is the secret behind that?
1. You would generally never use QR to compute eigenvectors. 2. EIG uses a different algorithm from the other tools, designed...

9 years ago | 0

Answered
product of nonsingular matrices is singular?
Trivial. However, NEVER. NEVER. NEVER use det to check if a matrix is singular. There, I said it three times so it must be tr...

9 years ago | 0

Answered
Integrating a function over an array of coordinate
You CANNOT use integral on a function defined on a list or array of points. Just wanting code to do what it is not programmed to...

9 years ago | 0

Answered
how to find eigenvectors using cholsky decomposition?
Why would you possibly want to do so? 1. Cholesky will cost you accuracy, because in order to form the Cholesky factors, you ...

9 years ago | 0

Answered
Plotting a straight line in 3D
Can you find two points on the line? Of course! help plot3 Or, if you prefer, help line What is the problem?

9 years ago | 1

Answered
fmincon constraints - min max problem
I'm afraid I don't see what is your problem. Read the help docs for fmincon. Look at the examples. Are c1, c2 c3 optimization...

9 years ago | 1

Answered
How can I solve an integral equation with an unknown kernel?
If g(x) is unknown, then if all you have is a single equation equal to a constant, then there is no simple solution. Or, you can...

9 years ago | 0

Answered
How to manually do Fourier Transform with efficiency comparable to the built-in code?
Essentially not possible, unless you are willing and able to write good, tight code in a compiled language, and fully understand...

9 years ago | 0

Answered
matlab Out of memory . Type HELP MEMORY for your options
Well, it seems clear. You cannot use pcacov. You need more memory, and you refuse to do that. You could learn about how to pe...

9 years ago | 0

Answered
Analytical solution of constrained linear least-squares problems with bounds x ≤ ub
Sigh. No. You cannot solve this problem without use of optimization tools in general. It depends on what you mean by an optimiza...

9 years ago | 0

Answered
How the increment size would affect solving an equation ?
Lets make this easy. M1 = 2; delta = 4; Y=1.4; D = @(Sg) atan((2*cot(Sg).*(M1^2*sin(Sg).^2-1))./( 2+M1^2*(Y+cos(2*...

9 years ago | 0

| accepted

Answered
Are MATLAB 2015b scrips compatible with...?
To a huge extent, MATLAB code is forward compatible. Yes, there will always be changes that must be made. It is always true that...

9 years ago | 0

Answered
These equations have an answer - how to get solve to find it?
Anyway, lets check the solution that you have posed. I'll write it a bit more simply. v_1f = (v_1*m_1 + v_1*m + u*m) / (m+m...

9 years ago | 0

Answered
De-noising blocky signal
I'd just just do something trivially simple here. First, apply movstd. You want sequences where the curve is essentially cons...

9 years ago | 1

| accepted

Answered
how to convert matrix subscript range to vector
help meshgrid [xx,yy] = meshgrid(1:3,4:6); v = [xx(:),yy(:)];

9 years ago | 1

| accepted

Load more