Answered
Calculate the inverse of a matrix
This is a singular matrix. No matter how badly you want to do so, you cannot invert a singular matrix. Not possible. Never will ...

10 years ago | 3

| accepted

Answered
How can I get the interpolating polynomial for multivariate scattered data?
Sigh. There is NO unique interpolating polynomial. In fact, there are an uncountable number of possible interpolating polynomial...

10 years ago | 0

| accepted

Answered
inverse of erfcx (scaled complementary error function)
As I recall, erfcx solves the problem that erfc goes to zero roughly like exp(x^2) for large x. For large x, erfcx is roughly ...

10 years ago | 1

| accepted

Answered
how can I generate a code based on specific value selection in a matrix?
There may be millions, or millions or trillions of solutions, or only a few. Your problem is classically called an <https://en.w...

10 years ago | 3

Answered
Is stepwisefit the exact implementation of stepwise regression?
You call it "THE stepwise regression algorithm" as if there is only one possible way to implement any algorithm, and one possibl...

10 years ago | 0

Answered
How can I correctly substitute symbolic variables with decimal numbers like 2.543342? The subs function can't do it properly...
Sure it does work properly. It is just that a decimal number is not exactly what you think it is. Floating point numbers are not...

10 years ago | 2

| accepted

Answered
how to create a grid of half-integer
Arrays cannot use a non-integer subscript. PERIOD. Surely you don't expect MATLAB to be able to access element 1.732056253445...

10 years ago | 1

| accepted

Answered
What do you think of "Did you mean clearvars -except".....?
Thats funny. I very rarely find the need to use clear/clearvars at all. I know what lives in my workspace. And I run MATLAB cont...

10 years ago | 1

Answered
Interpolation of Scattered data (n dimensional)
If you read the help for griddata, it suggests at the bottom to consider griddatan as a "see also" option. griddata specifically...

10 years ago | 0

Answered
how can I solve this by Matlab?
Did you try it? Are x1 and x2 known values? If not, then integral cannot solve a symbolic problem. If x1 and x2 are symbolic...

10 years ago | 1

Answered
Matlab fsolve function not returning correct answer.
You need to understand that the equations in here have some regions where complex numbers will result from some of those computa...

10 years ago | 0

Answered
Differential Equation with Array Coefficient
Are a and b known? Do you have an initial value? Or do you pray this equation has an analytical solution? For example, dsolve on...

10 years ago | 0

| accepted

Answered
formulation of multi objective optimization problem
help fgoalattain Surely you can make an effort?

10 years ago | 0

| accepted

Answered
Newton Raphson method for Colburn equation
I'll do a little transformation first to make things easy to write. So u=1/sqrt(f). H = 1e-4; Re = 10e4; syms u u0...

10 years ago | 0

Answered
how to calculate GCD in matlab
Compute the GCD of the first pair of elements. Then just loop. The gcd of more then one number is simply gcd(gcd(a,b),c) ...

10 years ago | 2

| accepted

Answered
Maximum number of function evaluations has been exceeded error. MaxFunEvals was increased, but I cannot solve the problem.
This is a linear least squares problem. Why in the name of god and little green apples are you using symbolic variables, and fmi...

10 years ago | 0

| accepted

Answered
How can I calculate the area between two curves?
If the two curves are defined over the same support, so identical x values for each curve, then the simple answer is to use trap...

10 years ago | 2

Answered
How to find out the distribution of missing data?
So, some of the elements of the vector are NaNs, or something like that? If the elements of this vector are presumed to be ju...

10 years ago | 1

Answered
sum of an array
If you want to use options in tools that work under current releases, you need to use a current release of MATLAB. At least you ...

10 years ago | 1

| accepted

Answered
How to get solution of these simultaneous equations ?
That solution will essentially never happen in any reasonable time. Yeah, computers are big and powerful. They can do all sorts ...

10 years ago | 0

Answered
Adapt k-means to only use datapoints as centroids
Hacking code that you did not write tends to lead to unexpected consequences. In fact, if you were going to write a k-means code...

10 years ago | 0

Answered
I am trying to run smooth function (even copy from your tutorial), but there is always a problem about input character
My guess is you edited the function smooth.m. Then you foolishly saved it, after corrupting the file. That is a REALLY bad id...

10 years ago | 1

Answered
Interpolate by taking the highest point
You need to CLEARLY define what you mean. So far, you have said that you want to use the highest point. But there is only one hi...

10 years ago | 0

Answered
Numerical evaluation of multiple integral not working
Really? Lets do it symbolically. syms r theta kernel = (1-r.*sin(theta)).*(1-r.*cos(theta)).*r.^2; rint = int(ker...

10 years ago | 1

| accepted

Answered
How do you enter the command for a cube root?
Two simple options: x^(1/3) Or, nthroot(x,3) Be very careful though. If x is negative, it will return a complex ...

10 years ago | 11

| accepted

Answered
How would I input the reverse of a natural log code?
The function exp is used to compute e^x. (In fact, that is the name of the function in virtually every language I've ever used.)...

10 years ago | 0

Answered
How avoid interpolated values between two clouds of scattered data?
There is no way to do it without some effort on your part. It is not terribly hard to solve though. A scattered interpolant w...

10 years ago | 1

| accepted

Answered
Hello, I am trying to interpolate 4 voltages with a corresponding Height value so I can input any 4 voltages and output the corresponding height value.
You have 4 independent variables, and then height is apparently a function of those variables. If you don't have some regular gr...

10 years ago | 1

| accepted

Load more