Solving an inequation of first degree issue
syms x a = 3*x + 21 <= 5*x + 13 asol = solve(a,'returnconditions',true) asol.x asol.conditions It looks like x >= 4 is the ...

| 採用済み

datetime values appear to be equal but return not equal
format long does NOT tell you every single digit in the number!!!! format long does NOT tell you every single digit in the numb...

| 採用済み

Distribute data in the form of a circle
You say you want to distribute data, which implies you want to see random numbers, based on some vague, unspecified distribution...

| 採用済み

Cody Problem 19. Swap the first and last columns
This is NOT a provblem with the Cody problem, but with your code to solve it. First, see what happens when A is 1. I'll show wh...

| 採用済み

How I can separate a matrix that is not positive definite, into two matrices?
Please learn to use operators and to clearly explain your question. Are you asking to find a new matrix Sq, such that the linea...

Search for combination of parameters that make minimum function output.
Before you go too far, some ideas to consider. I hope you have a FUNCTION, not a script. Learn to use functions. You will need...

Interpolating non-independent values
x is non-monotonic as a function of time. I have no idea what you mean by bounce, but I assume it indicates the failure to be mo...

Is not there a way to erase all the NaNs from a mxn matrix once and left the index values empty ?
A matrix cannot have "empty" elements. Well, a cell array can, or if you wrote a completely new class of your own, but standard ...

| 採用済み

Can't solve for x with (a = y/x)
I'm not sure what a rational integer is. How is that distinct from an integer? Anyway, assume x and y are integers, with a comp...

How can I use while loops to determine if an element is larger than the element below it and store the results in a vector with 1 representing true and 0 representing false?
"While" this does not answer your question, I would not use a while loop at all. Learn to use MATLAB as it is designed. A = ran...

Function after spline fitting
You cannot extract any "function" from a spline. At least, if you did, it would not be anything you could read or type without m...

How to extrapolate a curve using a data set?
Ah, if people were able to accurately and easily extrapolate data, then everyone would agree about things like global warming. O...

Solving a first order ODE with dsolve
While you may THINK that is the only answer, is it true that y==0 is also a solution? How about the constant value of sqrt(2)? ...

| 採用済み

does pp.breaks represent the arc length ?
NO. Not even remotely close to the arc length for a standard spline, perhaps something computed using the function spline. Alth...

How to efficiently solve a matrix eqation when the matrix is updated?
The problem is, it very much depends. If you can write the change in A as a rank 1 update, AND you write the code well, then you...

2d plot of a non-linear equation
Walter has already told you how to plot it. But so you can learn how to find that for yourself, learn to use lookfor. The trick...

Basins of attraction and Newtons Method
Since this is clearly homework, and we don't do homework for people on this site, think about it! First, you almost always want...

Multiple Equations in Matlab Solver
No. You have ONE equation. It just happens that you defined it in 4 pieces, then you added them all up. If you defined them as ...

Fitting nonlinear noisy data
This is something I recall reading about many years ago. Nonlinear least squares in the presence of high noise is a classically ...

| 採用済み

Solving an Improper Integral
Think of it like this. Do ALL problems you might pose to a computer have a solution? If so, then I might try solve('Peace ...

Find range of values of independent variable so the dependent variable is in a certain range
No. Given a completely general nonlinear function as a black box, so you cannot see inside the box, just pass in values, the ans...

You need to understand that solve is a solver that will produce an analytical solution if possible. And this apparently reduces ...

How to transform matrix V? (A = V*F*inv(V))
If a solution exists to the problem, you finding it in a fully robust way using the transformation A*V == V*F may be problematic...

Graph of a truss
Just plot each line segment using line, where you define the end points of the segments. You can provide a color spec for each s...

binary quadratic optimization under linear constraints
How is this not just a linear least squares estimation of the two unknown parameters? There is nothing binary about this, except...

| 採用済み

how can I linear interpolation without using function
Simple. just use interp1. You are not allowed to use interp1q. But interp1 is not interp1q.

Curve on specific X and Y coordinates
x = [429.245/3, 303.996/3, 287.771/3, 267.384/3, 252.095/3,239.755/3,224.149/3,201.129/3,0,-198.87/3, 222.745/3,237.498/3,249.83...

I want to solve the equation find metric
Sorry, but your question makes no sense mathematically. H is 64x199. Frf is 100x5. So H*Frf is 64x5. No problem there. Both mat...

Why is this output nothing and what can i change to make it work
I had to laugh at your statement that there is nothing wrong with the code. That seems counter to the fact that it produces noth...

| 採用済み

fminsearch curve fitting HELP!!
You use sl in places in your code, yet you never defined sl. Yes, that is a lower case L, not the number 1. My guess is you mean...