Answered
How can I know the algorithm that MATLAB uses to approximate values of the sine function?
Cleve's article is a good one. It discusses range reduction, a tremendously valuable method for special function evaluation. exp...

10 years ago | 2

Answered
Interpolate values triangular prism mesh on unstructured tetrahedral mesh
interp3 is not designed to solve an interpolation on a scattered set. It REQUIRES a regular, rectangular mesh. If you lack that,...

10 years ago | 0

| accepted

Answered
Subscript indices must either be real positive integers or logicals when running fmincon
So many problems, in so few lines. 1. It is VERY inefficient to load arrays into memory for a function every time it is calle...

10 years ago | 0

Solved


The Goldbach Conjecture, Part 2
The <http://en.wikipedia.org/wiki/Goldbach's_conjecture Goldbach conjecture> asserts that every even integer greater than 2 can ...

10 years ago

Answered
MATLAB Curve Fitting - Output Results
Is this normal to have happened, that the results can change when you redo the procedure? Yes. Did you supply starting values...

10 years ago | 0

| accepted

Answered
I want to generate random numbers with conditions
SIGH. Why do people not appreciate that it means nothing to say you want to generate random numbers, if you do NOT say what the ...

10 years ago | 0

Answered
Is it possible use the optimization toolbox to fit data to this cone equation?
Let me save you the effort. a=b=c=f=g=h=0 fits perfectly. No toolbox calls are needed. In fact, this is the solution suc...

10 years ago | 0

Answered
How can I fit a 3D cone (at varying tilts) through set of data points using the optimization toolbox?
Not easy. Just wanting to solve a problem does not make it solvable. 1. The equation you show is not that of a cone at variou...

10 years ago | 0

| accepted

Answered
lsqcurvefi problem on Mac OS
No. It is a bug in your code. Since we don't know what you tried to do, or how you tried to move things between systems, we can'...

10 years ago | 0

Solved


Pseudo Square Root (Inspired by Project Euler 266)
Shamelessly copied from the Project Euler page for Problem 266: ------------- The divisors of 12 are: 1,2,3,4,6 and 12. T...

10 years ago

Problem


Counting the Grand Primes
A grand prime pair is a pair of primes, p1 and p2=p1+1000, such that both numbers are prime. Like a twin prime pair, where the d...

10 years ago | 3 | 65 solvers

Answered
Can MATLAB find a function that generated a random set of points?
In general, no, you cannot find the underlying function. In fact, there are infinitely many functions that will pass through a g...

10 years ago | 1

Solved


Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

10 years ago

Solved


radius of a spherical planet
you just measured its surface area, that is the input.

10 years ago

Answered
estimateMaxSharpeRatio and fmincon.. Want to Minimize Sharpe ratio instead
fmincon is ALREADY a tool that will try to MINIMIZE the objective. So what is the problem?

10 years ago | 0

Answered
How can I reduce the runtime of a loop with 6000 iterations?
Um, you can't do so in general. I.e., you can't just magically speed up arbitrary (unspecified) code, for any piece of code. If ...

10 years ago | 2

| accepted

Answered
Can many nested loops cause loss of cells data in functions?
NO. Having nested loops will not cause loss of data. A bug in your code will cause loss of data. Period. Step through the ...

10 years ago | 0

Answered
ValueOf in optimisation toolbox
You would not have gotten an intelligent answer from the Excel solver on this problem. At least, not one that recognizes the tru...

10 years ago | 0

Answered
I am using fminsearch for optimisation. i want to know how important is initial value given to fminsearch?
Very important. This is true for virtually ANY optimizer. Think of an optimizer as a blind person, put down on the face of th...

10 years ago | 3

Answered
I am just trying to find unknown factor from long multiple factor equation. I am getting in solve 179 and empty sym. Can anyone help me please?
This is a symbolic equation, with many undefined (symbolic) parameters. That it works on simple problems is nice, but not surpri...

10 years ago | 1

Answered
How to calculate error bounds of b-spline interpolation in matlab
You cannot know any kind of statistical error bounds around any interpolation method. Sorry, but you cannot do so. Interpolat...

10 years ago | 0

| accepted

Answered
how to change an integer to a natural number
An integer already IS a natural number. https://en.wikipedia.org/wiki/Natural_number So, WOW! You already did what you wan...

10 years ago | 0

Answered
Calculating enormous numbers in Matlab
What you need to appreciate is the order that things are done in MATLAB. When you type sym(2^2000) MATLAB looks at this,...

10 years ago | 0

Answered
Problem with format long
The format command applies to the display of variables in the command window, not to the workspace browser pane.

10 years ago | 0

Answered
Problen with ODE45 Results
The crystal ball is sooooo foggy. I cannot see into your mind to know what you have done wrong, since you show us only one line,...

10 years ago | 0

Answered
How to read a 1000 digit number from a text file into a matrix?
Problem 8? Did that one - the answer is... :) I'm happy to see someone using MATLAB to solve these problems. It is a great way t...

10 years ago | 1

| accepted

Answered
lsqcurvefit cost/optimization function
No. There is no way to change the lsqcurvefit code to use a different measure of error. Ok, no way except for rewriting lsqcurve...

10 years ago | 0

Answered
How should I initialise the dictionary in the implementation of K-svd algorithm?matrix?
And why is that a problem? Do you know of a better way to initialize it? Does it work? If so, then refer back to my first ...

10 years ago | 0

Answered
Generating random numbers from 0 - 1 with limit on the sum
Ok, lets talk about the problem as defined. It is possible to solve the problem, but things are not always simple in high dimens...

10 years ago | 4

| accepted

Load more