Answered
cubic interpolation vs spline interpolation vs cubic spline interpolation?
pchip is not a true cubic spline, in the sense that it is not a twice differentiable piecewise cubic interpolant. pchip is only ...

6 years ago | 1

Answered
F solve error, how can I fix it?
There are no real solutions. First, I converted them to a problem that fimplicit can use. F1 = @(x,y) -(118/121)*x.^2-(333/242)...

6 years ago | 0

Answered
find least squares parameters
Did you try polyfit? If not, then do so.

6 years ago | 0

Answered
how to do the equation following its answer on matlab?
There is the obvious... Using y = 1/z, we can transform the problem. syms z y Fz = (1/z + 1/z^2 - 1/z^3)/(1 + 1/z + 1/z^2 + 4...

6 years ago | 0

| accepted

Answered
Got an Error Using Grid -Unknown Command Option
You don't get charged less for MATLAB, if you save on lines of code. They also don't charge less if you use another comma. You ...

6 years ago | 0

Answered
why the result of the following code vector y is not equals to y1 or y2 . How can I get the equals of them.
y2 y2 = 3414.6226519281 3421.81651603882 3493.03577073497 3510.3010446007 ...

6 years ago | 1

Answered
how to approximate exponential integral
vpa(y) or double(y) Either will suffice, depending on whether you want a symbolic floating point number of not.

6 years ago | 1

| accepted

Answered
Though the code is pretty simple, still the value of theta remains 0 every time I execute the results with different values of w,x,y,z,u and v. The value of theta doesn't change anytime.
Without even trying to exceute your code... You set theta to zero. The value of theta will ONLY ever be changed if a test is s...

6 years ago | 1

| accepted

Answered
How do I get decimal for the index of the function max()
The max function does NOT interpolate your data. Just because, IF you looked at the curve, you might decide the true maximum occ...

6 years ago | 0

Answered
symbolic solve not returning answer
Do you know that an analytical solution exists at all, with those parameters as effectively unknowns? In fact, I'll claim quite ...

6 years ago | 0

Answered
How to interpolate NaN in a 3d grid?
https://www.mathworks.com/matlabcentral/fileexchange/21214-inpainting-nan-elements-in-3-d

6 years ago | 0

| accepted

Answered
Surface fit doesnt cover all datapoints
load dataset1 x x = 20 30 40 50 20 30 50 40 50 60 40 50 60 20 30 50 60 ...

6 years ago | 0

| accepted

Answered
What are the optimisation techniques in MATLAB that can solve Discrete Optimisation Problems ?
Mainly these two: intlinprog - Optimization Toolbox ga - Global Optimization Toolbox

6 years ago | 1

Answered
Solving 5 trygonometric equations with solve
You are not doing anything overtly wrong, except perhaps in the assumption that an analytical solution exists at all. Of cours...

6 years ago | 1

| accepted

Answered
SIR model equations - diffrences
No. The standard equation is irrlevant, UNLESS you understand what the terms mean. There is no standard equation if you are lack...

6 years ago | 0

Answered
Make a curve fit for function for 2D array
There are infinitely many possible functions that could be used to fit any possible set of data. Some will fit better than other...

6 years ago | 0

Answered
How to compute inside points in n dim convex hull?
I wrote inhull for this purpose. Find it here on the file exchange. https://www.mathworks.com/matlabcentral/fileexchange/10226-...

6 years ago | 0

| accepted

Answered
Why Invalid or missing path error popped up when using saveas function in matlab?
You don't tell us what OS this is running under - something that is important. We have talked much in CAB meetings about the imp...

6 years ago | 1

| accepted

Answered
Solve a system of equations in the form given below
More stable than inv? You essentially NEVER want to use inv anyway. Formulate it as a linear system of equations. Then call lsq...

6 years ago | 2

Answered
what does an image of size 512*512*4 mean?
This is a 4 channel image. For example, typically we think of an image as represented by {R,G,B} code values for each pixel loca...

6 years ago | 0

| accepted

Answered
Is the function isprime deterministic?
Your problem is that number is NOT represented in MATLAB as you think it is. MATLAB CANNOT represent a number as a double exactl...

6 years ago | 2

| accepted

Answered
Solving Integral Equation With Unknown Boundary
Is gammaK both the lower limit of the integral, AND also inside the integral? I would note that you write it differently in the ...

6 years ago | 4

| accepted

Answered
Why There is No Built-in Function in MATLAB to Calculate sinhd as There is One for sind?
Because it would make absolutely no mathematical sense to do so? Really, this is a reasonable question, since I can see how it a...

6 years ago | 2

Answered
Delaunay Triangulation only for edges below certain length
Is it possible? Of course. Compute the edge lengths. Decide which triangle have a longer edge length than what you want. What w...

6 years ago | 2

| accepted

Answered
ANOVA returning p equal to 0?
I lack your data. And I see very little of your 1024 rows of data to know enough to answer. But, from what I see, you ask if thi...

6 years ago | 0

| accepted

Answered
How to divide a curve into 8 equal region along x axis?
I am surely wasting my time (and yours) to answer this, because I don't understand the question. Far too confusingly posed to ma...

6 years ago | 0

Answered
Calculating the rank inside a loop
Without even running the code (since I'm not sure what it wants to do), your problem stems from some invalid (although quite com...

6 years ago | 1

| accepted

Answered
Matrix product and inversion speed up
What you seem not to appreciate is that 90-95% is NOT very sparse, not when you are talking matrix factorizations (i.e., backsla...

6 years ago | 1

Answered
How to get an equation of spline interpolation for a set of data X and Y?
Congratulations! You win the door prize as the person to ask this question the millionth time! Seriously, this is a question I...

6 years ago | 0

Answered
How to get the rightmost root in the interval?
You claim you want to find the right-most root. If you have an interval, the simple solution might be to just start fzero off us...

6 years ago | 0

Load more