Answered
Linear least-square optimization problem, help!
WTP? If it is the same vector lambda that must apply to all cases, then you have ONE nonnegative (but linear) least squares prob...

9 years ago | 1

Answered
I was working on image processing and then i recieved an "Error using horzcat dimensions of matrices being concatenated are not consistent" on the following code
Read the error message! Error messages don't just appear for the lack of any good reason. MATLAB does not just throw an error me...

9 years ago | 0

Answered
Base-4 arithmetic in MATLAB
The average of two numbers is not dependent on what base they are represented in. Why does it matter if the result is not an int...

9 years ago | 0

| accepted

Answered
Bounding box of face and both eyes on an image
If you read the help for help insertObjectAnnotation You will find it uses FOUR arguments. You are trying to call it wi...

9 years ago | 0

Answered
Error message while Using PCA function in Matlab
NO. The warning does NOT mean what you asked. There is no problem. With only 26 data points, there are only at MOST 26 indepe...

9 years ago | 1

| accepted

Answered
Fitting Data for the given equations below?
Again, pi is a BAD name for a variable. I won't use it. I'll call it P instead. cp = [4.09 19.66 3.57 16.66 3.05 15.06 2...

9 years ago | 1

Answered
How can I delete a comment on a submission on File Exchange?
You cannot delete a comment on a submission on the FEX, even your own comment. However, comments can be deleted by the admin. Ma...

9 years ago | 0

| accepted

Answered
How to deal with integer linear programming when constant in the objective function is based on solution
Whatever you may think, that is NOT a linear programming problem, since the constant is not actually constant. It is some genera...

9 years ago | 0

Answered
Why does my binomial distribution not sum to one?
I would have thought that particular sum would start at 0, thus 0:N. Just a wild guess though. :)

9 years ago | 0

| accepted

Answered
solve three non linear power equations
Do it mainly with pencil and paper? x*(10^y - 25^y) = 5 - 4.95 x*(10^y - 30^y) = 5 - 4.89 Now take the ratio. ...

9 years ago | 0

Answered
How to reshape matrix without loop?
WTP? Effectively two lines, one more to get the size of A if you don't know it already. [a,b,c,d] = size(A); B = reshape...

9 years ago | 0

Answered
out of memory in perms.m
Get more memory, or solve smaller problems. For a vector of length n, perms will create a result that is of size factor...

9 years ago | 4

Answered
HOW DO EXTRACT GAUSS2 COEFFICIENTS FROM A CURVE FIT?
Use methods to learn such information. For example, I happened to have some data in vectors x and y. So, I just used a simple 'p...

9 years ago | 1

Answered
polyfit vs mldivide upon inversion of arrays
Sigh. This is in fact, EXTREMELY common. Exactly as expected. If there is any noise at all, swapping x and y will NOT produce a ...

9 years ago | 3

| accepted

Answered
Finding prominent local extrema with noisy data
The human eye/brain is great at seeing what it wants to see. From the plot you show, it looks like you are picking NOT the true ...

9 years ago | 0

| accepted

Answered
how to find the best curve fit for a set of data
I tried not to wade in here, because every time someone asks a question like this, it means they know virtually nothing at all a...

9 years ago | 3

Answered
help with fminsearch output value
A column number is a discrete thing. fminsearch cannot solve that. Regardless, you don't want to use an optimization (minimiz...

9 years ago | 0

| accepted

Answered
order of variable deletion and creation
I assume you are asking this if there is a bug in the right hand side. Will MATLAB have already deleted the output variable? ...

9 years ago | 1

Answered
Excluding data points while using least square method
How can you exclude them? You do that by excluding them. Just drop them from your dataset. Create a new copy that lacks thos...

9 years ago | 0

Answered
Help regarding simple, linear minimization problem
Sorry, but your question is not very clear. Partly because you are being sloppy in your notation. You have a,b,alpha,beta. Somet...

9 years ago | 1

| accepted

Answered
Plotting the results of a nonlinear system of equations as a parameter changes
Well, you did get to a start, and this does not look directly like homework. I'll rewrite your function, making it a function...

9 years ago | 2

| accepted

Answered
Fiedler matrix determinant behaviour
Congratulations! You are the 10 millionth person to have a problem, not understanding why matrix determinants are a bad thing. ...

9 years ago | 1

Answered
getting an error: this statement is incomplete
A textbook reason why it is a bad idea to create variable names on the fly. It creates code that is nasty to debug. The code wil...

9 years ago | 0

Answered
Is there an algorithm to get value of a matrix where the multiplication of this with its pseudo inverse is a Singular matrix?
(I'm not sure why I bothered to answer this, since it has nothing to do with MATLAB.) In general, no. That is not possible to...

9 years ago | 2

| accepted

Answered
Not showing the right set of linearly independent eigenvectors
Commonly known as a... <https://en.wikipedia.org/wiki/Defective_matrix> Your matrix lacks a complete set of eigenvectors. ...

9 years ago | 0

Answered
How to sum up large values with high precision?
There are a LOT of problems in this code, if you are trying to obtain high precision in the result. To start: Mueh=[0.83...

9 years ago | 2

| accepted

Answered
Whats wrong with this operator?
READ THE ERROR MESSAGE!!!!!!!!! "Operands to the and && operators must be convertible to logical scalar values. Error in opts...

9 years ago | 0

Answered
How can I find which function in my path contains a specific variable?
I posted a tool on the FEX some time ago. It will search through your entire directory to find any string in any function. ...

9 years ago | 0

| accepted

Answered
i have a problem regarding curve fitting function
This works quite well: spl= slmengine(xdata,ydata,'knots',[0 10 20 25 30 33],'increasing','on','concaveup','on','leftvalue'...

9 years ago | 0

Answered
declaration of global variables
I'm sorry, but this is just about the silliest reason to use a global variable I've ever seen. n is declared as global becaus...

9 years ago | 2

Load more