Answered
Further decompose: min(a, b-c)!! and simulation in MatLab
Short answer: No. Longer answer: Nnnnoooo.

10 years ago | 0

| accepted

Answered
Fitting a function to a curve/dataset
Sorry, but this method, of simply stepping through lots of possible values of a parameter is a terrible way to solve the problem...

10 years ago | 0

Answered
Plotting 1d Wave Equation
In general, it helps if you tell ALL of the pertinent parameters in your problems. Otherwise, it can be difficult to know what y...

10 years ago | 0

Answered
Can someone help me with the matlab numerical code to find the optimum minimum values of the function, f(x) where x(1) and x(2) should not be negative.
You have asked both responders how to do this using a conditional for loop. But a for loop has no conditions on it. So your requ...

10 years ago | 0

Answered
Unexpected result from lsqlin
Your problem is that you do not understand what / does, the difference between / and \, or the linear algebra, or what lsqlin do...

10 years ago | 2

| accepted

Answered
how do i approximate a continuous function using genetic algorithm with missing data points in between? I have used grnn and polynomial but i need to use genetic algorithm
You NEED to use a genetic algorithm? Sorry, but that is a meaningless statement. I can decide I need to do all sorts of silly th...

10 years ago | 0

| accepted

Answered
How can I use ode45 when my independent variable t is a symbolic variable?
You cannot use ode45 that way. ode45 is not a symbolic solver. wanting code to run as you like, even if it is not programmed to ...

10 years ago | 0

Answered
Matlab (R2015a) seems to be computing wrongly a simple recurrent sum. Below is a simple code that shows it. I get that Answer='no', AnResp='yes' however t4(401)=0.012. Does anyone have an idea of what is going on here?
It is not that MATLAB has computed incorrectly. It is that you don't appreciate how numbers are stored in a floating point form....

10 years ago | 1

| accepted

Answered
Add additional condition to matrix to restrict infinite solutions
First, don't use the code you are using. Bad mathematics there, whoever told you to use it, they did not really know what they w...

10 years ago | 0

Answered
Getting NaN after assigning a squared value to a vector
There are lots of computations that can generate a NaN. 0/0 inf - inf inf/inf 0*inf I imagine I can come up wit...

10 years ago | 2

Answered
A flag to indicate whether or not the int function has successfully computed a symbolic integral
It appears your only alternative is to inspect the result, as int returns only one argument, with no flag indicating "success" a...

10 years ago | 1

| accepted

Answered
you can pre-calculate the execution time of a code?
Short answer: No. Slightly longer answer: Nnnooo. If you want to know how long a code will take to run, before you ever ru...

10 years ago | 0

Answered
How can I connect points with curve?
help interp1

10 years ago | 0

Answered
matrix power and summation
Why do people never use the basic methods available? (Only kidding, as I suppose this is not obvious that what I show is valid f...

10 years ago | 1

Answered
how to write Derivative code ?
Without writing the symbolic toolbox completely from scratch, you cannot solve this problem. If your goal is to allow any genera...

10 years ago | 0

Answered
How can I apply boundaries in a fitting code which depend on other variables being fitted?
If you know that p(1) < p(2), this is a strict linear inequality. You won't be able to achieve that in general. You can specify ...

10 years ago | 0

Answered
How to locating the linear segment of a curve data and calculate the slope and interception?
It this data is typical of your data, its not gonna happen. <</matlabcentral/answers/uploaded_files/60547/untitled.jpg>> W...

10 years ago | 0

Answered
Access to the "smooth" function in Matlab 2016?
You cannot use an old toolbox if you upgrade your matlab release, but do not upgrade the toolbox too. So you need a current tool...

10 years ago | 0

Answered
Curve fitting with variance
It is just a weighted nonlinear least squares then. If nlinfit accepts weights (the standard deviation for each data point would...

10 years ago | 0

| accepted

Answered
How can I download thd function file?
If thd.m is in a MATLAB toolbox that was released later than your version, sorry, but you cannot do so. You need to upgrade your...

10 years ago | 0

Answered
How to change Simulate Annealing minimum optimization into maximum?
If you have a tool that minimizes an objective, is it not true that a maximum can be found instead by minimizing -f(X)?

10 years ago | 1

Answered
Solving linear systems with the QR factorisation
The problem is that a simple QR, WITHOUT column pivoting can yield an unstable solution. You need the pivoting to make it work, ...

10 years ago | 1

Answered
Optimization by adding a penalization term
A major part of your problem is that you have created a discontinuous objective by adding discrete integer amounts to the object...

10 years ago | 0

Answered
Why do I get a fraction instead of a rational number when I solve two simple simultaneous equations
Because you are (for some irrational reason) using symbolic computations to solve a simple linear system of equations. Sort of e...

10 years ago | 0

| accepted

Solved


What's size of TV?
Many people buy TV. Usually they ask about diagonal. But also important are width and height. Let's assume that all TV have rati...

10 years ago

Problem


Euclidean inter-point distance matrix
The Euclidean distance between two points in a p-dimensional space is a really common thing to compute in the field of computati...

10 years ago | 1 | 30 solvers

Answered
Enclosing Ellipse of a set of points
I recall playing with this general problem some time ago. The ad hoc scheme I came up with was to use an optimization that would...

10 years ago | 1

Solved


Prime number removal
remove all prime numbers from the input e.g. input = 1 2 3 4 5 6 7 8 9 10 11 12 ...

10 years ago

Solved


Determine the roots of a cubic equation
Given the coefficients a, b, c, and d of a cubic equation, a*x^3 + b*x^2 + c*x + d = 0, determine its roots.

10 years ago

Solved


Roots of a quadratic equation.
Calculate the roots of a quadratic equation, given coefficients a, b, and c, for the equation a*x^2 + b*x + c = 0.

10 years ago

Load more