Answered

Install 2 instances of Matlab on the same PC

Yes, and no. I frequently have several old versions of MATLAB on my computer. Walter has many as I recall. The only issue is if ...

Install 2 instances of Matlab on the same PC

Yes, and no. I frequently have several old versions of MATLAB on my computer. Walter has many as I recall. The only issue is if ...

12 days ago | 0

| accepted

Answered

Is there any method to calculate the inverse of matrix which changed a few values?

Bruno is correct in how to solve the problem, and also SOME of the issues with it. If you use this tool multiple times, the floa...

Is there any method to calculate the inverse of matrix which changed a few values?

Bruno is correct in how to solve the problem, and also SOME of the issues with it. If you use this tool multiple times, the floa...

12 days ago | 0

| accepted

Answered

wrong differential equation solution

Sorry. I don't know what you did incorrectly, but here is what I see. syms y(t) yalpha = (1/80)*(36*exp(-t) + 125*sin(t) -3*...

wrong differential equation solution

Sorry. I don't know what you did incorrectly, but here is what I see. syms y(t) yalpha = (1/80)*(36*exp(-t) + 125*sin(t) -3*...

12 days ago | 1

| accepted

Answered

How to limit calculation precision?

There are only two standard choices in MATLAB for floating point computations, and two ways to get round the problem. That is,...

How to limit calculation precision?

There are only two standard choices in MATLAB for floating point computations, and two ways to get round the problem. That is,...

13 days ago | 1

Answered

Question about Anderson-Darling (adtest)

Not using adtest. Like the Ford Model T, which Henry Ford sold in any color as long as the color you wanted was black, adtest te...

Question about Anderson-Darling (adtest)

Not using adtest. Like the Ford Model T, which Henry Ford sold in any color as long as the color you wanted was black, adtest te...

13 days ago | 1

| accepted

Answered

Problem of ``sprandn'': the number of nonzero elements is inconsistent with density

Bruno has already explained why sprand/sprandn fail to produce the requested density of arrays. So this answer is here only to a...

Problem of ``sprandn'': the number of nonzero elements is inconsistent with density

Bruno has already explained why sprand/sprandn fail to produce the requested density of arrays. So this answer is here only to a...

13 days ago | 1

Answered

How to place a number (1) in a random position in Line 1 in a matrix of zeros?

M = zeros(10,10); M(1,randi(10)) = 1; However, if you had no idea how to solve a basic problem of matrix indexing, you REALLY ...

How to place a number (1) in a random position in Line 1 in a matrix of zeros?

M = zeros(10,10); M(1,randi(10)) = 1; However, if you had no idea how to solve a basic problem of matrix indexing, you REALLY ...

13 days ago | 1

Answered

find the std of each parameter after lsqlin

There are some issues that make this a little problematic. The main issue is if lsqlin finds itself butted up against a boundary...

find the std of each parameter after lsqlin

There are some issues that make this a little problematic. The main issue is if lsqlin finds itself butted up against a boundary...

13 days ago | 0

| accepted

Answered

How do I remove the z variable in the polynomial equation?

What you don't understand is that IF you did what you want, the polynomial will become diffcult to use and difficult to evaluate...

How do I remove the z variable in the polynomial equation?

What you don't understand is that IF you did what you want, the polynomial will become diffcult to use and difficult to evaluate...

14 days ago | 1

| accepted

Answered

Can one run fminsearch on grids?

No. fminsearch presumes a continuously valued function, defined everywhere. You CANNOT use it to solve discrete problems. And ev...

Can one run fminsearch on grids?

No. fminsearch presumes a continuously valued function, defined everywhere. You CANNOT use it to solve discrete problems. And ev...

14 days ago | 0

| accepted

Answered

Why is 4-by-2 matrix compatible with 4-by-1 vector?

You are using .* to do the multiplication. NOT * which is the linear algebra operator. MATLAB extends the vector implicitly int...

Why is 4-by-2 matrix compatible with 4-by-1 vector?

You are using .* to do the multiplication. NOT * which is the linear algebra operator. MATLAB extends the vector implicitly int...

15 days ago | 0

Answered

Fitting a Curve to an Uncurling Object

The curve fitting toolbox assumes the functions are SINGLE VALUED. There can only be ONE value of y for any x. If that is not tr...

Fitting a Curve to an Uncurling Object

The curve fitting toolbox assumes the functions are SINGLE VALUED. There can only be ONE value of y for any x. If that is not tr...

15 days ago | 0

Answered

How fast is fminsearch over brute force? or How fminsearch deal with a local/global min?

How fast is it? Since brute force is an extremely poor method to solve anything (unless your name happens to be the incredible H...

How fast is fminsearch over brute force? or How fminsearch deal with a local/global min?

How fast is it? Since brute force is an extremely poor method to solve anything (unless your name happens to be the incredible H...

15 days ago | 0

| accepted

Answered

How to reduce dimension of griddedinterpolant?

whos Name Size Bytes Class Attributes eff_map 500x500 2000000 double ...

How to reduce dimension of griddedinterpolant?

whos Name Size Bytes Class Attributes eff_map 500x500 2000000 double ...

15 days ago | 0

| accepted

Answered

GA vs patternsearch for Integer problem with equality constraints

An exitflag of -2 means that GA never even found a feasible starting point for your problem. A larger population size lets it ra...

GA vs patternsearch for Integer problem with equality constraints

An exitflag of -2 means that GA never even found a feasible starting point for your problem. A larger population size lets it ra...

16 days ago | 1

Answered

Can one run fminsearch for a function defined by cases?

Can you? Yes. Should you? This may sometimes be a poor idea, although it depends on the specific segment functions. Are the seg...

Can one run fminsearch for a function defined by cases?

Can you? Yes. Should you? This may sometimes be a poor idea, although it depends on the specific segment functions. Are the seg...

16 days ago | 1

Answered

Generating parings of numbers and the pairs must not contain the same numbers

As Bruno has said, you are looking for pseudo-random derangements. So just to add some interesting information about derangement...

Generating parings of numbers and the pairs must not contain the same numbers

As Bruno has said, you are looking for pseudo-random derangements. So just to add some interesting information about derangement...

16 days ago | 0

Answered

Int returns Int when decimals input

fw = ((k*l*vi)/c)*(((1+p*l)*vi)/c)^(k-1)*exp(-((1+p*l)*vi)/c)^k ; When k is some non-integer value, you are raising some non-tr...

Int returns Int when decimals input

fw = ((k*l*vi)/c)*(((1+p*l)*vi)/c)^(k-1)*exp(-((1+p*l)*vi)/c)^k ; When k is some non-integer value, you are raising some non-tr...

16 days ago | 1

| accepted

Answered

How to solve linear programming problem?

Second answer, since the problem has now completely changed. Again, MATLAB is still totally unnecessary. Since you will probabl...

How to solve linear programming problem?

Second answer, since the problem has now completely changed. Again, MATLAB is still totally unnecessary. Since you will probabl...

17 days ago | 0

Answered

Why is it the answer from MATLAB is different from the other solving software? Where did I go wrong?

Usually when I see a confused question, where someone says "help, i got a strange answer", the reason is because they were not c...

Why is it the answer from MATLAB is different from the other solving software? Where did I go wrong?

Usually when I see a confused question, where someone says "help, i got a strange answer", the reason is because they were not c...

17 days ago | 1

| accepted

Answered

Extraction of values from a cfit object

When you do not know how to pull some information from a class, the best thing is to try using methods to learn what you can do....

Extraction of values from a cfit object

When you do not know how to pull some information from a class, the best thing is to try using methods to learn what you can do....

17 days ago | 0

Answered

Nonlinear fit to 100 data sets with seven unknown

That you WANT the residual norm to be low is not really that relevant. Pick anything you may choose to want. For example, suppos...

Nonlinear fit to 100 data sets with seven unknown

That you WANT the residual norm to be low is not really that relevant. Pick anything you may choose to want. For example, suppos...

17 days ago | 0

Answered

How can I solve a system of many equations in 2 variables ?

I think you don't understand the concept of linear least squares, or linear regression. You have essentially a problem with 12 ...

How can I solve a system of many equations in 2 variables ?

I think you don't understand the concept of linear least squares, or linear regression. You have essentially a problem with 12 ...

18 days ago | 0

Answered

Circshift function on very large array

Yes, but you need to understand that just because your mind can conceive of an idea, does not mean your computer can solve the t...

Circshift function on very large array

Yes, but you need to understand that just because your mind can conceive of an idea, does not mean your computer can solve the t...

18 days ago | 2

Answered

How do I use files from file exchange?

Download the .zip files. Decompress same. The result will be a directory. Add that directory to your search path. Pathtool is...

How do I use files from file exchange?

Download the .zip files. Decompress same. The result will be a directory. Add that directory to your search path. Pathtool is...

18 days ago | 2

| accepted

Answered

Ax-b, additional constraint

Why is it that you even think you have now 5 unknowns, not 10? Are you hoping that you can decde to fix 5 of those coefficients ...

Ax-b, additional constraint

Why is it that you even think you have now 5 unknowns, not 10? Are you hoping that you can decde to fix 5 of those coefficients ...

19 days ago | 0

Answered

Deleting an Element Modifies Other Elements

No. You are coming to a conclusion based on the wrong assumptions. It is NOT that deleting an element modifies other elements. ...

Deleting an Element Modifies Other Elements

No. You are coming to a conclusion based on the wrong assumptions. It is NOT that deleting an element modifies other elements. ...

19 days ago | 2

Answered

How can one do this calculation?

This is the perfect problem for the accumarray function. I'll add a few rows. A = [1 1 10 1 2 39 1 3 24 1 4 7 1 5 41 2 1 ...

How can one do this calculation?

This is the perfect problem for the accumarray function. I'll add a few rows. A = [1 1 10 1 2 39 1 3 24 1 4 7 1 5 41 2 1 ...

19 days ago | 2

Answered

Polynomial to Matrix form(canonical form)

I assume the question is to resolve a quadratic polynomial, perhaps: Q = x1^2 + 2*x1*x2 + x2^2 into a quadratic form. That...

Polynomial to Matrix form(canonical form)

I assume the question is to resolve a quadratic polynomial, perhaps: Q = x1^2 + 2*x1*x2 + x2^2 into a quadratic form. That...

20 days ago | 0

Answered

find index of missing data point/ extrapolatation

Use the intersections code, written by Doug Schwarz, found for download from the file exchange. I90 = 0.9*max(I); [Tint,Iint...

find index of missing data point/ extrapolatation

Use the intersections code, written by Doug Schwarz, found for download from the file exchange. I90 = 0.9*max(I); [Tint,Iint...

20 days ago | 0