Answered
Does fzero returns the first zero in an intervall with multiple zeros?
No. Fzero does NOT return the FIRST zero. How would it be able to do that, unless it also knew all of the zeros? Fzero is a n...

9 years ago | 0

Answered
Fitting of two vectors
Assuming this is not homework, there is a huge question one must ask. Mainly, what is the model? Ok, first, you don't have tw...

9 years ago | 2

Answered
Extrapolating corner values in matrix
V = [[NaN 2.05 NaN]', [1.96 1.76 1.88]', [NaN 1.74 NaN]'] V = NaN 1.96 ...

9 years ago | 0

| accepted

Answered
how to solve this error: FSOLVE requires all values returned by functions to be of data type double?
Virtually impossible to read. Next time, learn to format your code to be readable. Based on the line at the end... E =...

9 years ago | 0

Answered
How if i want to automatic repeat this source 10.000 times ?
With a loop help for

9 years ago | 0

Answered
How to find next Pythagorean prime
Your problem is easy. The test you did was wrong. I see what you were thinking, but you had a bug in your thoughts. :) You al...

9 years ago | 2

Answered
Looking for good example of where numerical integration beats symbolic integration
There are multiple issues to consider. A symbolic integral is useful, even necessary, when you need a symbolic result. Trapz won...

9 years ago | 1

Answered
After back substitution of optimal values i am not getting the same value of objective function?
My guess is you are not actually substituting the same values. Probably, you took the values as they were displayed to the comma...

9 years ago | 1

Answered
3 Equations with 3 unknowns - 0-by-1 error
It is not an error. It is a fact of life. It is trivial to formulate equations or systems of equations that have no analytica...

9 years ago | 1

Answered
Minimize difference between two populations.
If I understand you correctly, you have two vectors, call them A and B. N = 20; A = randn(N,1); B = randn(N.1); N...

9 years ago | 1

Answered
how do i pass a large number (240bit) to simulink?
You cannot represent that number as a number in MATLAB. Nor can you work with it in any significant way as a number. (Well, you ...

9 years ago | 0

Answered
finding a best fit curve over an unsorted cloud point
Not gonna happen. Well, not easily. x = obj3.Xm; y = obj3.Ym; z = obj3.Zm; plot3(x,y,z,'o') grid on box on ...

9 years ago | 1

Answered
Solution of trigonometric equation
This seems silly. Why are you using a 3 digit approximation to pi (and pi/2) here, then trying to solve for anything? pi is a...

9 years ago | 2

| accepted

Answered
i have a variable T=(2000:1:3000)......
Why not just solve directly for x? x^2 = y/(4+y) so, for any y, you have x as x = sqrt(y./(4+y)); As long as y ...

9 years ago | 0

Answered
functional derivative of anonymous function of parameters with known errors
This is the domain of a branch of statistics known as statistical tolerancing. Thus you have a function of some parameters that ...

9 years ago | 5

| accepted

Answered
Generating 15 random values (array of 1x15 dim) whose sum equal to 1.
1. Download <http://www.mathworks.com/matlabcentral/fileexchange/9700-random-vectors-with-fixed-sum randfixedsum> from the file ...

9 years ago | 0

Answered
Best method to define constants used by several functions
Use a struct, one that contains all of your parameters. parms.a = 1; parms.piapprox = 3.14; parms.theanswertoeverythi...

9 years ago | 2

Answered
Solving an equation with two variables, why is one being set to zero?
There are multiple solutions here. This will help in your case though. syms x y real

9 years ago | 1

| accepted

Answered
MATLAB code for Lambert W function
It appears to be part of the symbolic toolbox, so you would need that. lambertw(3) ans = 1.0499 If you actual...

9 years ago | 1

| accepted

Answered
Non trivial Solutions for a system of equations
As others have pointed out, this system has rank 2. How can you recognize that? You can re-write each equation as eqn1 =...

9 years ago | 0

Answered
I ordered MATLAB payed €140 but cannot download it on iPad
You do that by contacting customer service. However, Answers is NOT customer service. Nobody here can help you. We answer que...

9 years ago | 0

Answered
To find unknown constants similar to polynomial division
In general, it may or may not be possible. In practice, almost always impossible for a solution to exist. syms b c K x P...

9 years ago | 2

| accepted

Answered
I need a code that produce a moving average matrix with a 5*5 window
I'll bet that you do have a simple function that will solve the problem. Hint: help conv2 If that is insufficient, th...

9 years ago | 1

Answered
Fit equation not correct for x vector
NEVER use short digit approximations to double precision numbers. x2= [8;8.5;9;9.3;9.5;9.8]; y2=[0.280;0.283;0.287;0.293...

9 years ago | 0

| accepted

Answered
how to fit two parallel lines
The problem is, there are always things in here that you know, but are not telling us. - Do you have some expectation for the...

9 years ago | 0

Answered
Formating String Parameter Left of Decimal
Personally, 100e-6 seems like a silly and confusing way to write the number 1e-4. And at some point in my educational career, I ...

9 years ago | 0

Answered
Can I make this code for Boole's rule smaller?
First of all, you need to actually know what Boole's Rule is! http://mathworld.wolfram.com/BoolesRule.html Why did I know ...

9 years ago | 1

| accepted

Answered
What kind of algorithm is used for azimuth and gcxgc functions ?
Which toolbox(es) do these come from? They are not in MATLAB proper. I don't even see the name coming from a TMW provided toolbo...

9 years ago | 0

Answered
Finding the number of strings for a vector
Assuming that by "string" you are asking for constant sub-sequences... Suppose you used diff on the vector? It would be zero ...

9 years ago | 0

Answered
Matlab for loop error with '>='
for x >= 0 is not valid MATLAB syntax. No matter what you think it means, you cannot make up new syntax and expect it to w...

9 years ago | 0

Load more