Answered
Creating a contour plot of data.
I see no function called ModelSolver2. So there is no way to test what you are doing. which ModelSolver2 'ModelSolver2' ...

9 years ago | 0

Answered
I am using 'fit' command for curve fitting. But my model equation is defined only for some range of input (x>5) . For x<5, model equation is y =2 (Having no constants). So How should I deal this problem ? Thanks in Advance.
You essentially have no model to fit, when x < 5. Even if you did, who cares? We already know what y is then! You know the model...

9 years ago | 0

| accepted

Answered
Deviated results of natural cubic spline function
The only possible thing I can say to help is that your code is wrong, starting at the beginning. Even if I assume that you r...

9 years ago | 0

| accepted

Answered
specify domain of a function
Functions are assumed to live on the entire real line. There is no explicit facility to say that f(x) (or f(x,y)) only lives on ...

9 years ago | 0

| accepted

Answered
Past 30 days downloads on the FEX incorrect
It may well be a reflection of single IP downloads counting as one download. Some years ago, we had one well-known person (but p...

9 years ago | 0

| accepted

Answered
interp1: The grid vectors are not strictly monotonic increasing
Too late for the answer to be useful, but this still may be instructive. The problem arises if the points are not in the form...

9 years ago | 1

Answered
QR decomposition - Why is the first element of an orthogonal matrix always negative?
It is entirely arbitrary. If Q*R = A then it is equally true that (-Q)*(-R) = A Q is just a set of orthogonal ve...

9 years ago | 0

| accepted

Answered
Is there a way to floor to a specified number of digits?
Sort of. Multiply by a power of 10. Use floor. Then divide by that power of 10. HOWEVER, don't expect it to work perfectly...

9 years ago | 1

| accepted

Answered
I wan to solve an equation on MATLAB. It involves five variables. After using solve function i am getting answer in terms of those variables and not as a integer. I Want real value . How can i get that?
There is NO need to predefine variables as symbolic, then define them as numbers. So most of those syms calls were a waste of ti...

9 years ago | 0

| accepted

Answered
If else log2 statement on matrix
If statements don't work that way. They don't allow you to treat each element of the matrix independently. matrix2 = zeros(...

9 years ago | 0

| accepted

Answered
Fitting a smooth (logarithmic) curve
This is not a nonlinear problem in the unknown coefficients. Use regress, since you have the stats toolbox. You could even use b...

9 years ago | 0

Answered
Generating non-linear n vectors for interpolation
The words "within the bounds", as they apply to scattered data are not as easy to implement as you think. Clearly the set of ...

9 years ago | 0

Answered
Receiving an interpolate error.
READ THE ERRORR MESSAGE! LOOK AT YOUR DATA! [Touch_Down,Toe_Off] ans = 218 225 245 2...

9 years ago | 0

Answered
Need help fitting an exponential curve to the following data:
ALWAYS plot your data. ALWAYS. Think about what you see. Think about what you want to do. <</matlabcentral/answers/uploaded_f...

9 years ago | 0

Answered
generate random data from equation of best fit
WHY BOTHER? Just add random noise. help randn

9 years ago | 0

Answered
How to convert from Celsius to Kelvin, Fahrenheit, etc. with multiplication only
No. There is no conversion between degrees F, degrees C, or degrees K that will not involve an additive (or subtractive) offset....

9 years ago | 0

Answered
linprog gives wrong solution?
I'm surprised that you think [45 45] is a possible solution. .02*45 + .05*45 ans = 3.15 That is less than 2...

9 years ago | 0

| accepted

Answered
Why is pca() faster than svd()?
Read the help for SVD, particularly the economy SVD.

9 years ago | 0

| accepted

Answered
Problem in code for Newton Raphson Method
It would seem that knowing what your starting value was would be of importance. When I run that code, I get x = ...

9 years ago | 1

| accepted

Answered
Choice biggest of 3 values in Agent-Based model
Did you look at the SECOND output argument for max? help max READ THE HELP! It was put there for a good reason. [Y,...

9 years ago | 0

Answered
Unable to find a minima for a symbolic integral
fminbnd and fminsearch do NOT apply to symbolic functions. Nor does quadgk. ALL of those tools are NUMERICAL tools. They do N...

9 years ago | 0

Answered
Plotting piecewise function self-dependent
Matlab does NOT use zero based indexing. So this is an illegal expression: y(0)=0.055; Read the error message again. It ...

9 years ago | 0

Answered
what is the difference between using the zeros array or nan array ?!
No difference in theory. I frequently use NaNs because that way, if I am doing something, and then want to verify I have filled ...

9 years ago | 4

| accepted

Answered
Definite integral of a constant
Note the difference in what I did. P = sym(1); limit_1 = 0; limit_2 = 10; Area = int (P,limit_1, limit_2) Area ...

9 years ago | 2

| accepted

Answered
How to extend a curve to another curve and find their intersection?
The two curves are pretty boring. A low order polynomial fit will be entirely adequate. A quadratic had some visible lack of fit...

9 years ago | 1

| accepted

Answered
how i can use Singular value decomposition function with big size matrix?
As Steve says, buy some memory, LOTS of it. Have some coffee. Read a good book while you wait. Or better yet, read a bad book, a...

9 years ago | 0

Answered
Problem to obtain all possible combinations of up to 50 variables or more.
You want to generate all possible combinations of a set of numbers. In this case, N = 50 or so. There are 2^N possible combina...

9 years ago | 1

Answered
Expand an NxK matrix to a KxKxN matrix in most efficient way
Why? Does the for loop take much time? NO. In fact, the loop itself is virtually inconsequential. You have wasted more time just...

9 years ago | 0

| accepted

Answered
Solving Matrix elements by using while iteration in Matlab
Please stop asking the same question over and over again. NO you cannot solve it using a while or for loop. P = sym('P'...

9 years ago | 0

Load more