Answered
Unresolved symbolic integral - How to solve numerically?
No. You cannot use a numerical integration tool (integral) to solve indefinite integrals, and certainly not symbolic ones. No...

9 years ago | 0

| accepted

Answered
Help with a minimize problem
Time to think about your function. ALWAYS do that. Plot it if possible. fun = @(x,y) 242*log(1-x-y)+120*log(2*x-x^2-2*x*y)+...

9 years ago | 1

| accepted

Answered
Find triangles in a vector of line segments
Start by converting the points to a list of indices. Unique will do that for you, with the rows option. Thus: nedge= size(p...

9 years ago | 0

Answered
Issues with robustness of integral function? - integrating a constant
This has nothing to do with "robustness". integral expects that if you pass in a vector of inputs to the function, then it c...

9 years ago | 0

| accepted

Answered
How to find an unknown parameter from a equation fitted to a data-set in MATLAB 2016b ?
So, you have this equation: y = 2*t*(1-cos(x)*(n-1)/(n*p-p*(1-cos(x))) I've rewritten it above, putting in multiplies wh...

9 years ago | 0

| accepted

Answered
Increase stability of curve fit
People think they have this great model. And computers can do anything. :) NOT TRUE. A vast part of your data is constant, pr...

10 years ago | 0

Answered
How MATLAB Reads an M File?
NO. MATLAB does not "read" any function, as you seem to be thinking. The secondary functions (beyond that main one) are acces...

10 years ago | 0

Answered
Generate random coordinates inside a convex polytope
This is actually easier than you think, IF you understand how to solve the necessary sub-problems. I even have code that does it...

10 years ago | 6

| accepted

Answered
How to create a multivariable function for used in fminsearch
NO. You will NEVER be able to use fminsearch on a 200 variable problem. It will essentially never be able to search the space to...

10 years ago | 0

Answered
Can .mat files be moved between platforms? (IE say from a mac running OS X 10.6.5 with MatLab 2014a to RedHat Unix running 2016a or to Windows 10 running 2016b?)
Yes. They are completely portable, as long as... 1. You have the same set of toolboxes on each platform. 2. You are carefu...

10 years ago | 0

| accepted

Answered
Different results with Polyfit?
It does not happen. IF you pass in exactly the same data (in the same order) into polyfit, calling polyfit the same way each tim...

10 years ago | 0

| accepted

Answered
optimization strategy picking initial point, lower and upper bound?
It is rarely a good idea for someone who knows little about optimization to try to write their own code. Such code tends to be p...

10 years ago | 0

Answered
Incorrect answer in multiplication of doubles
However, realmax is NOT the limit of a double such that it will represent an exact integer. That limit is 2^53. Your product exc...

10 years ago | 1

| accepted

Answered
My if x ~= y statement is not working
Why are you bothering with this line? overload = overload+0; The last time I checked, adding zero to something does noth...

10 years ago | 0

Answered
Accuracy of integral function.
Sometimes we need to apply common sense. Is this the accuracy of the integral function, or something else? WHENEVER you try ...

10 years ago | 0

| accepted

Answered
problem in functin (y for x)
It makes it easier to get help if you report the (COMPLETE) error message that you got. Help those who would help you. In thi...

10 years ago | 0

Answered
how to estimate integral scale of turbulence, Lu, from Ru(τ) by numerical integration.
So you have data sampled over some arbitrary set of points in time, and you wish to compute the integral over some time limits t...

10 years ago | 0

Answered
Fsolve variable previous time step
No. You don't need to use the information from the previous "time" step. In fact, if you did do so, that would invalidate the as...

10 years ago | 0

| accepted

Answered
How to cut digits after the decimal point?
You can use a2 = round(a1,1); to round to that decimal point. However, to display the number with no zeros, you may w...

10 years ago | 4

| accepted

Answered
Find which tetrahedron in a Triangulation contains a Given Facet
Um, can you say easy, peasy? 1. Sort the facet indices in your target facet. 2. Sort the facet indices in your triangulati...

10 years ago | 0

| accepted

Answered
Why can't my students use certain features while others can?
This is because not all students apparently have all the toolboxes. The symbolic toolbox or the curve fitting toolbox are added ...

10 years ago | 0

Answered
How to extract the equation which describe a piecewise interpolation ?
That you think you "need" the function is not relevant. There is no simple function that you can write down for that interpolant...

10 years ago | 0

| accepted

Answered
Calculating bivariate polynomial coefficients in Matlab!
download <http://www.mathworks.com/matlabcentral/fileexchange/34765-polyfitn polyfitn> from the file exchange.

10 years ago | 0

| accepted

Answered
Generate trajectories with same tangent in a specific point
I'm not going to do your homework, as this probably is a piece of your student project. But if your goal is simply to generat...

10 years ago | 0

Answered
How to minimize the 12th norm of a difference vector?
This is quite confusing, because you have not ever explained what you really want. In your words: "x is a weighted sum of two...

10 years ago | 1

| accepted

Answered
multiple runs of normrnd vs. one run of normrnd with several outputs
Yes. But why not test it yourself? rng(17) normrnd(0,1) ans = -0.39509 normrnd(0,1) ans = 0.14...

10 years ago | 0

| accepted

Answered
How to find the corner points at a plateau
I think this is easier than it has been made out to be. Findpeaks won't really work, since it is looking for peaks, and these pl...

10 years ago | 1

Answered
How do I calculate the function of a curve with the known arc length and ending point coordinates?
This is not really a MATLAB question, since you are trying to solve a problem that is poorly posed, with insufficient informatio...

10 years ago | 0

Answered
error in nlparci in MatlabR2016b: The number of observations must exceed the number of parameters.
Star is correct. You cannot uniquely estimate the coefficients of a model that has more parameters than unknowns. There are infi...

10 years ago | 0

| accepted

Answered
Not Getting Both Roots to Nonlinear Equation
No analytical solution exists, so a numerical solver was employed. In general, all roots of a nonlinear equation are not always ...

10 years ago | 0

| accepted

Load more