Answered
In epsilon test for comparing equality of two numbers. How to improve the test?
Can you "improve" the test? What does improving it mean? How close do two numbers need to be considered the same? For example, ...

18 días ago | 0

Answered
Combination of two values in a list to get the value of an input value
Easy, peasy. Yet, this is very possibly homework. Yet, you have already gotten an answer, that is pure brute force, when a far b...

19 días ago | 0

Answered
convert equation to code
Your problem is that the cosine function produces only numbers between -1 and 1. That is another way of saying that acos ONLY wo...

19 días ago | 0

Answered
syms does not work on my matlab
Is there a reason why you decided to name a script syms, and then tried to use syms itself? What you did was confuse MATLAB, so ...

19 días ago | 1

| accepted

Answered
No solution found. fsolve stopped because the problem appears to be locally singular.
You have a serious problem here, as I think you are having a problem using double precision arithmetic with this dynamic range o...

21 días ago | 0

Answered
How to extrapolate the data
Your model is only a quadratic polynomial. Why you needed to use a nonlinear regression is beyond me, when polyfit would have wo...

22 días ago | 0

Answered
How to constrain the resulting equation from a polynomial surface fit to a positive range?
The lower bounds in fitoptions apply only to the coefficients of the polynomial. That has NOTHING to do with the value of the fu...

22 días ago | 0

Answered
Best method to clear persistent variables
You can also use clear persistent Which will clear all persistent variables.

23 días ago | 1

Answered
How to check in which step MATALB code is running?
I tend to use things like waitbars, or some informative output that gives me a clue. For example, I have been recently running a...

23 días ago | 0

Answered
exp( ) gives unexpected answer for (2,2) input
I would bet a large sum of money that a is not exactly what you think it is. a_you_think = [1.4142 1.4121; 1.4142 1.4121]; How...

25 días ago | 1

| accepted

Answered
How do I integrate LegendreP for specific values of m and n?
help legendre The legendre function evaluates the specified Legendre polynomial at the indicated points. It does not return the...

25 días ago | 0

Answered
Get one equation from two complex roots
You can use help sym/expand to force MATLAB to expand an expression that contains parens. syms s expand((s-(-9+i*3))*(s-(-9...

25 días ago | 0

Answered
"A matrix 'B' of 5x5 whose elements are all 5"
Can you create a matrix of the desired size that is all ones? (Clearly yes, since you know how to use the ones function.) Could ...

27 días ago | 3

Answered
GA - objective and constraints have to run the same expensive function
I would try memoization. help memoize For example, we can use it as in the example below. I've created a function that does li...

27 días ago | 0

Answered
Which solver can solve this equation for V. Result should be around 59. I tested the to halfs of the equation on python. Thank you for your directions in the first place.
So the second time you asked this question, you provided values for the other variables. I'll first put it in symbolic form so w...

28 días ago | 0

Answered
Hi all,I want to use matlab to calculate the exponential integral,I know that the official function ExpIntegralE in Mathematica can calculate it.
Is there a reason why you would not just use expint? help expint Probably you did not look for it. And that was what you did w...

28 días ago | 0

Answered
Is there a special Matlab function existing to check feasibility of a Point (to a Optimization Problem)
Why should there be a better way? That is, does your check completely answer the question, in a simple way, as efficiently as p...

28 días ago | 2

Answered
How can I get the function g(x) (way to solve functional equation)
NOTHING IN your question is about MATLAB. But you already have an answer. I think you may have a misunderstanding. Is there a w...

30 días ago | 0

Answered
Making Smoother the Curve fit to Airfoil data using cscvn function
I saw your question. You don't need to direct a question at me. However, it appears you are asking how to get a sharp corner at...

30 días ago | 0

| accepted

Answered
I want to find 4 constant with used 1 eq
I'd like to solve a problem just like you. Let me pretend I have been given the equation: a + b + c + d = 5 Can I determ...

alrededor de 1 mes ago | 0

| accepted

Answered
Is it possible to implement optimization algorithms, especially particle swarm, with "dynamic bounds" in MATLAB?
The fuzzy bounds you describe are not actually bounds at all, just subtle, vague hints. And code tends not to handle fuzzy hints...

alrededor de 1 mes ago | 0

Answered
plot an eight variable function
It is easy, even trivial to do. All you need is one of those nice hyper-dimensional monitors. They are difficult to buy though, ...

alrededor de 1 mes ago | 0

| accepted

Answered
Convert striaght lines to smooth curves
Why in the name of god and little green apples are you differentiating acceleration? You need to INTEGRATE acceleration, once to...

alrededor de 1 mes ago | 0

Answered
is there codes that helps to find out the type of the distribution ?
As Rik said, difficult to know which distribution a random variable comes from. Don't believe me? x = 0.96489; Do you know if ...

alrededor de 1 mes ago | 2

Answered
How to get the cofactor matrix of any given square matrix (singular or non singular)?
The matrix of cofactors is moderately well posed, even when the matrix is itself singular. Of course, what you would do with it ...

alrededor de 1 mes ago | 0

| accepted

Answered
Want to add two 2D array with special condition
Easy peasy. A = [0 0 1;1 2 3; 0 0 0 ]; B = [1 2 1; 1 0 0; 2, 3, 0]; C = (A + B)./(1 + (A&B)) The trick is to look carefully ...

alrededor de 1 mes ago | 0

| accepted

Answered
slope of non linear
Are you right to use a second order difference? NO. That is not the slope, but something proportional to the SECOND derivative. ...

alrededor de 1 mes ago | 0

Answered
Will Spanish be supported at some point in Matlab Text Analytics Toolbox?
That is a definite maybe. Or maybe not. Answers is not a direct line to the MathWorks. Those who answer a question here are doi...

alrededor de 1 mes ago | 0

Answered
Plotting a system of nonlinear equations
Learn first that MATLAB uses log(x) as the NATURAL log, NOT ln(x). As well, learn that MATLAB does NOT use implicit multiplicat...

alrededor de 1 mes ago | 0

| accepted

Load more