Answered
What is the difference between 'smooth' and 'smoothdata' function?
These are very similar codes, doing similar things. smooth came eariler. But not everybody has the same toolboxes, nor can you b...

6 years ago | 5

| accepted

Answered
How Can I Calculate the perimeter and area of Delaunay Triangulation
This is an old question, so I'll answer it in several ways, since there are several sets of tools one could use. Possibly the ...

6 years ago | 0

Answered
How to expand the matrix into two matrix
Assuming you want to essentially factor a symbolic expression into what is essentially a dot product between two vectors, I woul...

6 years ago | 1

Answered
Can we use latest matlab functions in older versions,
No. You cannot do that. You cannot use new tools from a more recent release in an older release. Or, you can just upgrade to th...

6 years ago | 1

Answered
Negative correlation between two random vectors
Trivial. Generate two random vectors. As long as they are random, the probability they have a zero correlation is zero. So the ...

6 years ago | 0

Answered
HELP ME WITH THIS QUESTION GUYS IM STRUGLING
(In fact, you can solve this without recourse to a loop at all, but a for loop was requested by the assignment.) Do it ONE piec...

6 years ago | 3

Answered
How do I do a "best fit polynomial of degree 2" for my graph?
You did the fit correctly. What was wrong was in the very last line, where you plotted the result. Your data is not sorted, but...

6 years ago | 0

| accepted

Answered
Find greatest common denominator of two values to get integer
Ugh. This is not a pretty thing to do, when working in floating point arithmetic. You need to work with tolerances. Yes, GCD is ...

6 years ago | 1

| accepted

Answered
Linear Congruence from Euclids HCF
What is your question? I assume HCF ~ Highest Common Factor? Google tells me HCF also might be reference to an Australian healt...

6 years ago | 1

| accepted

Answered
Why is interp2 producing NaN values?
It is wrong tha the OP code was touching the cboundary. It was that the op code was EXCEEDING the boundaries. The rand statemen...

6 years ago | 4

| accepted

Answered
i want to define a area that is polygonal. how can i determine a nu piont is in the polygonal or not??
help polyshape Once you learn to create a polyshape, which is very easy. In fact, there are examples of using polyshape right i...

6 years ago | 0

| accepted

Answered
Multidimensional surface fitting to n independent variables.
Some common misunderstandings in this... First, you cannot use fit on problems with more than 2 independent parameters. 16 is n...

6 years ago | 0

| accepted

Answered
How can get a better Polynomial out of this data?
Lets be serious here. You have all of 7 data points, which seem to lie at virtually random values. On top of the data, I've ...

6 years ago | 0

| accepted

Answered
how to find the inflection point from data contained in an array?
YOU ESSENTIALLY JUST ASKED THIS QUESTION. How many times will you ask it? However, there are two important points I need to exp...

6 years ago | 0

Answered
Formula used to evaluate polynomial using polyval?
The formula? It is a polynomial. There is no complicated formula. But if you want to know how many of the tools in MATLAB work,...

6 years ago | 1

Answered
How to construct the coefficient matrix(Pentagonal matrix) of five-point difference scheme?
Ok. I'll give you a hint. Constructing a pentagonal matrix STARTS with the function spdiags. A real virtue of spdiags is you wil...

6 years ago | 0

| accepted

Answered
Multi-variable interpolation, grids and 2D guessing
Yes. you make yourself clear. This is a nonlinear optimization problem. Sometimes it might be called a calibration problem. Ac...

6 years ago | 0

Answered
Fit experimental data to 1D convection diffusion solution
If your goal is to find an anaytical solution, of the form u(x,t), you may need to do some reading. Here, for example, a general...

6 years ago | 1

| accepted

Answered
find equation of plane intersect
Ok, first, the solution set is NOT a line. It is a curve, that lives in the (x,y) plane. Next, There is NO plane of intersection...

6 years ago | 1

| accepted

Answered
Tight surface meshing of 3D points
Sadly, there is no optimal amount of data, no optimal distribution of points. Only as much data as you can get. The quality of...

6 years ago | 0

Answered
finding and removing outlier
Your data does not appear to be normally distributed. Why not? There are no negative values, even though much of your data lies ...

6 years ago | 0

| accepted

Answered
random close numbers within an array
I would choose a random integer from 1 to 10000. We can use that as a linear index into the elements of your array, as if the ar...

6 years ago | 0

| accepted

Answered
Substitute variable and find maximum of the function
Yes. It is probably best, IF you have some completely general function where you won't tell us the function, to use GA. Ameer is...

6 years ago | 2

Answered
How to select non-consecutive values from an array, or generate non-consecutive values?
I'd argue that requiring that the outliers/deviants NOT be consecutive biases your results. But this is easy enough to do. St...

6 years ago | 1

| accepted

Answered
Second derivative from a smoothing spline fit
It is important to recognize that IF you have the curve fitting toolbox, then there are various ways to accomplish that you were...

6 years ago | 1

Answered
i have a problme
What version of MATLAB are you using? This may be important, since strings in MATLAB only recently allowed double quotes, and th...

6 years ago | 1

Answered
How can I index this definite Summation notation?
So many things wrong with the code you wrote. Invalid MATLAB syntax. Just wrongly implementing the formula in multiple places. ...

6 years ago | 0

Answered
Finding odd and even values without functions
A = 1:10; A == fix(A/2)*2 ans = 1×10 logical array 0 1 0 1 0 1 0 1 0 1 As long as A is composed of...

6 years ago | 0

Answered
the purpose of %f
They seem identical to me. See? The result is exactly the same. ;-) sprintf('%d',pi) ans = '3.141593e+00' sprintf(...

6 years ago | 0

| accepted

Answered
How to measur the inclination angle of a palne?
Is there a way? NO. Sorry, but absolutely not since two points do not determine a plane. There are infinitely many planes that ...

6 years ago | 1

| accepted

Load more