Answered
If a relation doesn't end, is it still a relation?
As you wrote it, this is not valid MATLAB syntax, so in a MATLAB context, it has no meaning at all. As far as being a relatio...

10 years ago | 0

Solved


For given xx,x, y vectors build spline of x and y and find yy values for xx vector.
For given xx,x, y vectors build spline of x and y and find yy values for xx vector. Example x = [ 1.0000 1.5000 2.00...

10 years ago

Answered
Solution of two variables parametric (in one) equation
You have ONE equation, in TWO unknowns. You cannot solve for both unknowns. At best, you can solve for one as a function of t...

10 years ago | 0

Answered
How to specify the variables to be integers in fmincon function.
You cannot do so. Period. fmincon does not allow integer constraints. To solve that class of problem, you need a integer program...

10 years ago | 0

Answered
What's wrong with my polygon area calculator code
It seems to work for me. A simple case: x = [0 0 1 1 0]; y = [0 1 1 0 0]; xymatrice = [x',y']; AreaOfPolygon ...

10 years ago | 0

| accepted

Answered
Somebody help me. thanks
Learn to use the tools in MATLAB. Some that might be useful MIGHT be: help fopen help fgets help fgetl help fclose...

10 years ago | 0

Answered
Moving players into teams - equal as possible random
There are lots of similar problems out there that can be formulated as an integer programming problem of some sort. In this case...

10 years ago | 1

Answered
How to manually change MaxFunctionEvaluations in fmincon
No. Increasing the maximum number of function evaluations is NOT how you will ensure finding the global minimum. In fact, if the...

10 years ago | 2

Answered
Simpsons rule integration from zero to infinity
Integration of a function using Simpson's rule all the way to infinity will take a LONG time. The last time I checked, infinity ...

10 years ago | 1

Answered
Is the ismember function buggy?
My gut tells me that you are falling under the wheels of floating point arithmetic. ismember([0.2 0.3],0:.1:1) ans = ...

10 years ago | 0

Answered
equationsToMatrix and linsolve giving incorrect results for voltage divider
Is this a linear equation in x and y? x/y = a NO. It is not. Perhaps you think you can transform it to a linear equation...

10 years ago | 0

| accepted

Answered
For a certain condition, how to replace a numerical value with text
A numeric variable cannot contain text. So one element of a vector cannot be the word 'normal', while the remainder remains nume...

10 years ago | 0

Answered
How to normalize well data between [-1,1]?
Well, think about it! Without knowledge of the scaling and translation done, how could you possibly regenerate the original data...

10 years ago | 1

| accepted

Answered
Fmincon: How to use constraints irrelevant to the obj function?
If there are variables that are not optimized by the optimizer, and are irrelevant to the objective function, then constraints o...

10 years ago | 0

Answered
How to solve an optimisation problem when the decision variables of my objective function are function of objective function?
If x,y,z are all functions of t, then t is the real variable here. You are not controlling x,y,z, only t. So this appears to be ...

10 years ago | 0

Answered
What is MATLAB corresponding test for chi2gof but for Complex values?
A complex number is actually a 2-dimensional thing, composed of real and imaginary parts. So it makes no sense to talk about a o...

10 years ago | 0

Answered
equation solution with matrices
Why do you need a loop of any kind? Did you try just evaluating that expression as is? x = [4 2 1 3]; y = [2 1 0.5 1]; z...

10 years ago | 0

Answered
Polyfitn Function calculate the RMS value
You can find the formula for RMSE easily enough. Here for example: https://en.wikipedia.org/wiki/Root-mean-square_deviation ...

10 years ago | 0

| accepted

Answered
Is least square fit using Pivoted QR decomposition a single pass or multipass fitting procedure?
Backslash does not use an iterative scheme, if that is what you are asking. As long as your model is linear in the parameters, a...

10 years ago | 1

| accepted

Answered
Matlab doesn't fit :(
The random start point used is a terribly poor choice here. That is a common problem with ANY exponential variation of fit, as a...

10 years ago | 0

| accepted

Answered
histc removed by matlab
Why do people never read the help? The MATLAB gods put it there for a reason, of this I am sure. :) [N,EDGES,BIN] = histcoun...

10 years ago | 0

Answered
Polyfit not working for line of best fit
You need to learn to use the debugger, since you are unwilling to give us sufficient information to debug your code. Step throug...

10 years ago | 1

| accepted

Answered
How to generate all possible permutations without using the function perms/randperm?
Using random permutations to try to generate all possible permutations is simply insane. Sorry, but you will never be happy with...

10 years ago | 4

| accepted

Answered
How can i know the abscissa of the maximum of a curve ?
So you have a function of a single variable, and you need to know the location of the min. If you have the function itself, t...

10 years ago | 0

Answered
How to find a matrix if i know the 2 norm condition number is 1.
Another way to generate random matrices of any size that have a unit condition number: n = 10; [Q,R] = qr(rand(n,n)); ...

10 years ago | 0

Answered
Is there any inbuilt function available for surface fitting to the intensity values of a grayscale image that minimize the entropy of an Image?
No. Just use a general optimization tool (from the optimization toolbox), writing the objective function yourself. The curve ...

10 years ago | 0

| accepted

Answered
Using cubic splines to fit data
First of all, why are you writing cubic spline codes to fit data, if you don't really understand cubic splines, and the issues i...

10 years ago | 0

Answered
simple method to reconstruct original waveform
From the very little that you have said, you probably need to 1. Define a model that relates the two. 2, Estimate the par...

10 years ago | 0

Answered
what is “rando” command in matlab
There is NO rando function in MATLAb. Perhaps you have obtained it from someone else. You have several options. 1. You c...

10 years ago | 0

Answered
Problem with finding roots of an interpolated function
I think your problem is you do not understand spline interpolation, and what spline does when it sees your curve. So I execut...

10 years ago | 1

Load more