Answered
How to solve Ax=b with some all knowns except some x values
I think you may be missing some very important pieces of information. The example you show is a homogeneous one, where a non-tri...

2 years ago | 1

Answered
difficulty solving simulataneous equations
You have 3 equations, and you calim to have 4 unknowns. However, you only tell solve that you want to solve for TWO unknowns, ia...

2 years ago | 0

| accepted

Answered
How to find the largest cuboid inside a set of points in 3D?
Can a corner of the cube stick out between some of those points? If that is acceptable, you NEED to say so, because it would com...

2 years ago | 0

Answered
Determine intersection between plane and polyhedron
Um, not too hard, as long as the polyhedron is convex, so perhaps a convex hull. If it is not convex, then it is more difficult....

2 years ago | 0

| accepted

Answered
Interpolation schemes that produce positive second derivatives of the interpolant
Are there easy adjustments? Not really. At least not totally trivial. It sounds as if you want an interpolant, NOT an approximan...

2 years ago | 0

Answered
the size of picture show three data?
A black and white image typically has one channel only. All you need to know is how bright each pixel is. But a color image st...

2 years ago | 0

| accepted

Answered
Fast calculate the inverse of a lower triangular matrix
Do not write your own inverse code. Gaussian elimination is great for teaching a student about matrices, but too often they then...

2 years ago | 0

Answered
Plotting perpendicular lines but they are not perpendicular.
Both @Stephen23 and @Voss have explained the issue perfectly, so I am just adding some additional information to clear things up...

2 years ago | 2

Answered
How to find the equation of the data available of a graph?
I'm sorry, but high order polynomials (as suggested by @akshatsood) are always a bad idea. You will run into numerical problems ...

2 years ago | 3

Answered
Integral with limit variable
Multiple ways to solve this. First the easy, just as a numerical integration using a trapeziodal rule. beta=2.1; eta=1500; t=...

2 years ago | 0

Answered
Finding a common step value between an array of non-uniformly distributed points
This is generally impossible to do exactly, IF your numbers are floating point. Let me repeat, effectively impossible. If your n...

2 years ago | 3

| accepted

Answered
matlab strange result for mean of single vs double
You need to understand what you did, AND you need to understand floating point arithmetic. a=single([99 100 65 101]'+zeros(4,51...

2 years ago | 3

Answered
find similar numbers within a matrix
Lots of good answers posted. I did not see this one. load M.mat size(M) The array M has 61 rows. P = [-3.4970900e+01 -2.02...

2 years ago | 1

Answered
Is there any way to convert the matlab code into a flow chart
As @Teresa Hubscher-Younger said, this is not for Stateflow to solve, not the purpose of that tool. Instead, you might try the M...

2 years ago | 0

| accepted

Answered
can any one help me to find empirical equation with 3 or 4 parameters for this data, And of course with different parameters for each curve
Sadly, while you want some magical form for each of these curves, that is not so easy to find. Essentially, it looks like each o...

2 years ago | 1

Answered
Questions about operation A\B
The only time when there would/should ever be any significant difference is if the matrix is singular. And in that case, there w...

2 years ago | 1

Answered
Is there a built-in function to concatenate arrays in the third direction?
Logically, one would just use cat. How might you have found this? READ THE HELP! That is, near the end of the help for all MATL...

2 years ago | 0

| accepted

Answered
How to evaluate sym using certain known multiple values?
Easy peasy, though using matlabFunction here is not my recommendation. syms('x',[1,3]) So x is a vector, with elements [x1,x2,...

2 years ago | 2

Answered
Trying to Solve quadratic inequalities
syms x ineq = x^2-2*x+7>12; sol = solve(ineq, x,'returnconditions',true) sol.x sol.conditions The result is two half-infini...

2 years ago | 1

Answered
Compute linear interpolant in pp form and find derivative
n = 10; x_grid = linspace(-5,5,n)'; f_grid = x_grid.^2; % A simple quadratic polynomial fn = spapi(2,x_grid,f_grid) Convert ...

2 years ago | 0

| accepted

Answered
How can I create randomly scattered points between two circles?
Let me explain it differently than the rest, with a simple, intuiitive derivation. Again, the problem is perfectly symmetric in...

2 years ago | 2

Answered
Hi, everyone! I have a question about generating random meshgrid.
Any better way? Sorry, but no. You want to generate a "randomly" perturbed mesh, but one where each cell has exactly equal area?...

2 years ago | 0

Answered
Determine if 3d point belongs to polyhedron
Since I'm going to show how to do it using a triangulation anyway, I might as well post it as an answer instead of a comment. x...

2 years ago | 1

| accepted

Answered
Coefficent of determination in a nonlinear system
R^2 is not always a meaningful thing to compute for nonlinear regression models. On some problems (those with no constant coeffi...

2 years ago | 0

Answered
How to find the slope of a linear area
There is NO linear region in such a curve. Only a region which is moderately close to linear. It is a CURVE. Not a straight line...

2 years ago | 1

Answered
How to locate the answer in the given code?
Let me expand on what @Dyuman Joshi has said. Suppose you use any function in MATLAB. We will see what happens here, if it is us...

2 years ago | 2

Answered
Record n values and once finished start replacing the oldest values with new ones
There are many ways to solve such a problem. A simple one is to just do a shift at each step, shuffling all of the elements in t...

2 years ago | 0

Answered
Matlab giving incorrect matrix multiplication :/
This is a common error I see novices to programming make. They do something strange, get something stranger yet, and immediately...

2 years ago | 2

Answered
Thomas algorithm tri diagonal matrix
DON'T WRITE YOUR OWN CODE FOR A PROBLEM LIKE THIS. Instead, just create the tridiagonal matrix, as a sparse matrix. Then use b...

2 years ago | 0

Answered
Help with the equation
So why not try it? First, use valid variable names, not greek letters for the variables. rho = 1.025; L = 130.2608788; B = 2...

2 years ago | 0

| accepted

Load more