Answered

Overdetermined Linear System with Binary-Solution

You CANNOT use lsqr on integer (binary) problems. Period. I don't know why you think you could do that. You cannot use intlinpr...

Overdetermined Linear System with Binary-Solution

You CANNOT use lsqr on integer (binary) problems. Period. I don't know why you think you could do that. You cannot use intlinpr...

22 días ago | 0

Answered

Help solving directional cosines

A=[-130.342, -75, -55; -75, -130.342, 65; -55, 65, -130.342]; svd(A) That small number as the third element of the s...

Help solving directional cosines

A=[-130.342, -75, -55; -75, -130.342, 65; -55, 65, -130.342]; svd(A) That small number as the third element of the s...

23 días ago | 1

| accepted

Answered

How to calculate error of trapz() function?

This is not a question about MATLAB, but a question about understanding numerical integration, and perhaps a bit of statistics. ...

How to calculate error of trapz() function?

This is not a question about MATLAB, but a question about understanding numerical integration, and perhaps a bit of statistics. ...

23 días ago | 1

Answered

Output result's format?

These are symbolic expressions you are showing. The format command has NOTHING to do with symbolic expressions. It applies only ...

Output result's format?

These are symbolic expressions you are showing. The format command has NOTHING to do with symbolic expressions. It applies only ...

25 días ago | 1

| accepted

Answered

Symbolic Inverse of large matrix

Sorry, but not really. It does not matter how big or how fast our computers get. There will always be somebody who wants to co...

Symbolic Inverse of large matrix

Sorry, but not really. It does not matter how big or how fast our computers get. There will always be somebody who wants to co...

26 días ago | 0

| accepted

Answered

How to buy a new toolbox with a subscription running

You can only get valid answers by contacting customer service. Answers is not that. So anything we tell you will be made by some...

How to buy a new toolbox with a subscription running

You can only get valid answers by contacting customer service. Answers is not that. So anything we tell you will be made by some...

28 días ago | 0

Answered

Systems of equations (help me please)

Congratulations! You have won the award for being the 1 millionth person to ask this question! The second place award is an all ...

Systems of equations (help me please)

Congratulations! You have won the award for being the 1 millionth person to ask this question! The second place award is an all ...

28 días ago | 0

| accepted

Answered

I am not able to solve this equation using 'solve' function. Is there any other alternative?

polyA is not a polynomial. It is a mess that contains square roots of c and powers of c that go as high as the 6th power. Do you...

I am not able to solve this equation using 'solve' function. Is there any other alternative?

polyA is not a polynomial. It is a mess that contains square roots of c and powers of c that go as high as the 6th power. Do you...

28 días ago | 0

| accepted

Answered

Using the fit() function to find an exponential gives me a straight line..?

Your real problem is the data does NOT support the model you want to fit. You can squeeze as hard as you want. That model is sim...

Using the fit() function to find an exponential gives me a straight line..?

Your real problem is the data does NOT support the model you want to fit. You can squeeze as hard as you want. That model is sim...

28 días ago | 3

| accepted

Answered

log-normal distribution

Rand does not "have" randn to make it anything. Randn is a completely different code. That they happen to be named similarly is ...

log-normal distribution

Rand does not "have" randn to make it anything. Randn is a completely different code. That they happen to be named similarly is ...

28 días ago | 1

Answered

How to generate 8 random 2D coordinates that do not duplicate?

Sorry. My first answer did not read your question carefully enough. You want 8 sets of integer coordiantes from the lattice in ...

How to generate 8 random 2D coordinates that do not duplicate?

Sorry. My first answer did not read your question carefully enough. You want 8 sets of integer coordiantes from the lattice in ...

29 días ago | 1

| accepted

Answered

Solve non-separateable equation

The usual name for this is an implicit function. There is no relationship where you can solve directly for y as a function of x....

Solve non-separateable equation

The usual name for this is an implicit function. There is no relationship where you can solve directly for y as a function of x....

alrededor de 1 mes ago | 1

| accepted

Answered

How do I plot this curve?

Why would you think you need to use fsolve? Even without the use of fimplicit this is just a hyperbola. f = @(x,y) y.*(1 + y/2)...

How do I plot this curve?

Why would you think you need to use fsolve? Even without the use of fimplicit this is just a hyperbola. f = @(x,y) y.*(1 + y/2)...

alrededor de 1 mes ago | 0

Answered

For loop checking if number is prime (without using MATLAB functions)

Your code does NOT work well. In fact, it has a serious bug in it. You are using a loop. EVERY pass through the loop, it sets y...

For loop checking if number is prime (without using MATLAB functions)

Your code does NOT work well. In fact, it has a serious bug in it. You are using a loop. EVERY pass through the loop, it sets y...

alrededor de 1 mes ago | 0

| accepted

Answered

How do I check the compatibility of legacy MATLAB 2012b code with new versions of MATLAB?

Sorry. There is no tool that will scan through your code and automatically tell you what parts will run or not, at least not bey...

How do I check the compatibility of legacy MATLAB 2012b code with new versions of MATLAB?

Sorry. There is no tool that will scan through your code and automatically tell you what parts will run or not, at least not bey...

alrededor de 1 mes ago | 0

Answered

Volume Segmenter App not available

This is almost certainly not a problem per se, except for people who have older releases of MATLAB, or who completely lack the I...

Volume Segmenter App not available

This is almost certainly not a problem per se, except for people who have older releases of MATLAB, or who completely lack the I...

alrededor de 1 mes ago | 1

Answered

How to know if a minimum found with Global Search is actually the Global minimum?

Bjorn and Stephen should be encouraged to make their comments into Answers. But let me expand on what they have both said. The ...

How to know if a minimum found with Global Search is actually the Global minimum?

Bjorn and Stephen should be encouraged to make their comments into Answers. But let me expand on what they have both said. The ...

alrededor de 1 mes ago | 1

| accepted

Answered

initial condition ODE45?

You cannot. That is to say, not directly. I suppose you could formulate it as a shooting method, in which case it becomes a nonl...

initial condition ODE45?

You cannot. That is to say, not directly. I suppose you could formulate it as a shooting method, in which case it becomes a nonl...

alrededor de 1 mes ago | 0

Answered

A QR complexity question

(Good points made by Bruno. This answer tries to dive a little more deeply than Bruno spent the time to do, but I really don't c...

A QR complexity question

(Good points made by Bruno. This answer tries to dive a little more deeply than Bruno spent the time to do, but I really don't c...

alrededor de 1 mes ago | 2

Answered

Explanation of the following eval expression

Lol. Whoever wrote the code should learn to use MATLAB, as this is just an abuse of eval, for absolutely no good reason. For ex...

Explanation of the following eval expression

Lol. Whoever wrote the code should learn to use MATLAB, as this is just an abuse of eval, for absolutely no good reason. For ex...

alrededor de 1 mes ago | 2

Answered

simulate a markov chain including the absorbing state "death"

You won't always eventually die? While there are ways for that to not happen eventually, usually they are the plot of some movie...

simulate a markov chain including the absorbing state "death"

You won't always eventually die? While there are ways for that to not happen eventually, usually they are the plot of some movie...

alrededor de 1 mes ago | 0

| accepted

Answered

Is this code efficient to generate the Lagrange polynomial?

Is your code efficient to generate something you should not be doing in the first place? Note that a Lagrange interpolating poly...

Is this code efficient to generate the Lagrange polynomial?

Is your code efficient to generate something you should not be doing in the first place? Note that a Lagrange interpolating poly...

alrededor de 1 mes ago | 0

Answered

Using fzero for intesection and "integral" for area calculation

g=@(x)exp((-x.^2)./2); h=@(x) x.^2-4.*x; x=linspace(-1,5,100); plot(x,g(x)); hold on plot(x,h(x)); You did that much cor...

Using fzero for intesection and "integral" for area calculation

g=@(x)exp((-x.^2)./2); h=@(x) x.^2-4.*x; x=linspace(-1,5,100); plot(x,g(x)); hold on plot(x,h(x)); You did that much cor...

alrededor de 1 mes ago | 0

Answered

Guess for fsolve returns similar answer (heavily non-linear equations)

We don't see your equations. Almost certainly, they are pretty nasty looking. You tell us the exit flag was -2. That flag says ...

Guess for fsolve returns similar answer (heavily non-linear equations)

We don't see your equations. Almost certainly, they are pretty nasty looking. You tell us the exit flag was -2. That flag says ...

alrededor de 1 mes ago | 1

| accepted

Answered

How can I use symbolic variables while solving problems of MATLAB Cody?

I recall that Cody disallows the use of essentially all toolboxes. Symbolic variables are only active for you, IF you have the s...

How can I use symbolic variables while solving problems of MATLAB Cody?

I recall that Cody disallows the use of essentially all toolboxes. Symbolic variables are only active for you, IF you have the s...

alrededor de 1 mes ago | 0

Answered

Obtained results are far from the specified objective function when using fmincon with a Multi-Start.

No numerical optimization that applies to a completely general nonlinear function will converge to the global soution regardless...

Obtained results are far from the specified objective function when using fmincon with a Multi-Start.

No numerical optimization that applies to a completely general nonlinear function will converge to the global soution regardless...

alrededor de 1 mes ago | 1

Answered

Please help me, how to plot for this function?

your function is complex. But a complex variable is really TWO variables, bundled into one. In ths case, it appears the imaginar...

Please help me, how to plot for this function?

your function is complex. But a complex variable is really TWO variables, bundled into one. In ths case, it appears the imaginar...

alrededor de 1 mes ago | 1

Answered

Matrix multiplication accuracy problem

The Mathworks is NOT rounding numbers just to make your life difficult. They are not rounding numbers at all, at least not beyon...

Matrix multiplication accuracy problem

The Mathworks is NOT rounding numbers just to make your life difficult. They are not rounding numbers at all, at least not beyon...

alrededor de 1 mes ago | 2

Answered

Trouble computing the factorial of a vector

No. Look CAREFULLY at that vector. Are they really zero? Or are they just relatively zero? F = factorial(1:50); F([1 2 48 49...

Trouble computing the factorial of a vector

No. Look CAREFULLY at that vector. Are they really zero? Or are they just relatively zero? F = factorial(1:50); F([1 2 48 49...

alrededor de 1 mes ago | 1

Answered

Solve plane equation with 3 points and additional condition

This is actually pretty simple. I think you may be missing how simple it is. In three dimensions, 3 points determine a plane. T...

Solve plane equation with 3 points and additional condition

This is actually pretty simple. I think you may be missing how simple it is. In three dimensions, 3 points determine a plane. T...

alrededor de 1 mes ago | 1

| accepted