Answered
I want to fit the points with using non linear regression. But the data points are all far below the graph. What should I fix??
This is just silly. x = [31.5575 32.5637 33.5925 34.6425 35.7137 36.8062 37.9212 39.0600 40.2200 41.4025]; y = [-3.73231...

10 years ago | 0

Answered
Non linear regression fiting with both, weights and parameter boundaries
Well, you CAN do it with either of these tools, but fitnlm is more difficult. lsqnonlin is actually the simplest way to achi...

10 years ago | 0

| accepted

Answered
How to display the selected function from a switch case statement
Hint: A= [2 3 5]; disp([num2str(A(1)),'.*X + ',num2str(A(2)),'.*Y + ',num2str(A(3))]) 2.*X + 3.*Y + 5 The above i...

10 years ago | 0

Answered
Get time span between two outcomes of a random pick
Huh? An explanation that is clear as mud. First, I'd suggest not writing something like this: a=[a;b;a;c;b;b;f;a] Tha...

10 years ago | 0

| accepted

Answered
plot multiple circles within polygon with fixed radius and at particular distance from each other ?
With a slightly bemused look on my face. :) Nope. It is simply impossible to use a loop. Seriously, of course you can use a l...

10 years ago | 0

Answered
Undefined function or variable 'numer'.
There is no function in MATLAB called numer. That is why you get an undefined function or variable error. Possibly you wanted...

10 years ago | 0

Answered
Tried to optimize the function but getting output as infinite
So what is your problem? No optimization is guaranteed to converge to the local solution that you may desire. We don't know if y...

10 years ago | 0

Answered
Fitting curve with an exponential function
You can't do this well, at least as you have posed the problem. Conversely, you CAN do this, but you will do a poor job of it. F...

10 years ago | 0

Answered
How to negate an outer loop when you have nested loops?
Where you put the break is in the outer-loop. When it hits the break, OF COURSE it will terminate the main loop! You told it to ...

10 years ago | 0

Answered
Fmincon with different objective function in line search
No. You cannot change the objective function while in a line search. Fmincon does not tell you if it is in a specific part of...

10 years ago | 0

Answered
how to generate subsequent combination of elements
What does the number 13 mean? 13 is just a symbol. In base 10, it means the number (1*10+3). So creating your vector is trivial....

10 years ago | 0

| accepted

Answered
How to convert strings to symbolic expressions without sym()?
syms x y = x+1; WTP? No warning. No problem.

10 years ago | 0

Answered
interval between colon-generated vector
Why should diff return a single unique value? That presumes that floating point arithmetic is able to store all floating point n...

10 years ago | 1

Answered
How to make a Contour Map
You have scattered data. Contour requires GRIDDED data. Download tricontour from the file exchange. I recall there are two ve...

10 years ago | 0

Answered
How is it possible that gamultiobj gives worse solution when the number of MaximumGenerations is raised?
This is a stochastic solver. It generates points using random methods. As well, ANY numerical optimization tool can only find an...

10 years ago | 0

Answered
Interpolate include NaN data.
Download <http://www.mathworks.com/matlabcentral/fileexchange/4551-inpaint-nans inpaint_nans> from the File Exchange. Although i...

10 years ago | 0

| accepted

Answered
matlab showing 0 for small number values product
help format Specifically, I'd suggest one of these: format long g format short g

10 years ago | 0

Answered
equation with parametric integrand
Hmm. I recall very recently seeing a question like this, with unknowns a and b in an integral. I think the functions were rather...

10 years ago | 0

Answered
How can I expand a function to a polynomial expression?
First, even though people think it is nice to write the shorthand in mathematics of -1< x/4 <1 this is NOT a valid MATLA...

10 years ago | 0

| accepted

Answered
How to implement weighted Linear Regression
"Is Weighted least square regression is same as weighted linear regression?" Yes. Given the problem A*x = y where x i...

10 years ago | 1

Answered
How to calculate the Taylor series expansion of e^x
I changed things slightly. Look carefully at the changes I made. tolerance = 0.000001; old_sum = 1; new_sum = 0; c...

10 years ago | 0

| accepted

Answered
How to numerically integrate product of functions without using '.*'?
This is a bit ridiculous as a goal. Sorry, but it is. So I imagine it was given to you as a problem of some sort, in which case,...

10 years ago | 0

Answered
kindly can anybody suggest and help me to correct my code ?
You may think that this produces a binary number. k{1,2}{1,1}=01010001 It does not. It stores a double precision number:...

10 years ago | 0

Answered
Nonlinear system using newton
Your code gave the correct solution! Why do you think that Newton's method will yield both solutions from one starting value?...

10 years ago | 1

| accepted

Answered
hello every one i am using .m file of imread function but it gives me an error... anyone help me out. thanks
That IS a MATLAB toolbox function, just from an old release, MATLAB5, that they have installed in a strange looking place. My...

10 years ago | 0

Answered
How can I perform a large number of curve fits more efficiently?
One way yo do it is to use a <http://www.mathworks.com/matlabcentral/fileexchange/49950-batched-partitioned-nonlinear-least-squa...

10 years ago | 0

Answered
How can I iteratively solve an algebraic equation?
Using solve, with symbolic (unknown) values for y and z, will never succeed. It is quite easy to formulate a problem with no ana...

10 years ago | 0

Answered
What does gca mean?
Is there a reason why you would not just try help gca or better, doc gca RTFM. When you have a question about a ...

10 years ago | 2

Answered
About nonlinear optimization of a symbolic function, containing symbolic coefficients.
There is a good reason why you cannot do so. Because you cannot do it. NO optimizer will solve the problem you wish to solve....

10 years ago | 0

Answered
How to plot x=f(y) ?
You wish to plot the inverse relationship, x=f(y), given the expression y = x^3+x^2-x+6 Note that in general, this need ...

10 years ago | 0

Load more