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...

16 jours ago | 0

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...

17 jours ago | 1

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)? ...

17 jours ago | 0

| accepted

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...

17 jours ago | 0

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...

18 jours ago | 0

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...

18 jours ago | 0

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...

18 jours ago | 0

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 ...

20 jours ago | 0

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 ...

20 jours ago | 0

| accepted

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 ...

21 jours ago | 0

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...

21 jours ago | 0

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

21 jours ago | 0

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...

21 jours ago | 2

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...

22 jours ago | 0

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...

22 jours ago | 1

| accepted

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

22 jours ago | 0

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...

23 jours ago | 0

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...

24 jours ago | 1

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...

24 jours ago | 0

| accepted

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...

24 jours ago | 0

Solving system of 8 non-linear equations
This is a nonlinear homogeneous problem, in the sense that the all zero solution "works". See that if x5==x6==0, then the logs g...

25 jours ago | 0

m m m m
Why does this seem obvious? Yet, the result that you seem to want is incorrect. syms z x y zint = int(-2/z,z) subs(zint,z,x*...

26 jours ago | 0

| accepted

Unifrnd generates a large number of uniform distributions. Is a part of it still uniform？
Short answer: Yes. Long answer: yyyyyeeeeeessssssss. Think of it like this: These numbers have the property of beeing iid. Ind...

26 jours ago | 0

| accepted

Jacobi Method in calculating solution, number of iterations, and relative residue
If you think your code runs slowly, an important thing you want to do is look at the profiler tools in MATLAB. help profile Do...

26 jours ago | 0

Is there a way to suppress output, given a condition, from within fprintf?
Could you do it? Well, probably. You would need to construct some pretty elaborate conditional operations inside the fprintf. ...

27 jours ago | 1

My code is returning complex numbers
What value of x yields cos(x) == 2? It might be the new math, but I don't recall any common values of x, such that cos(x) is ev...

28 jours ago | 0

Fzero for Colebrook Equation
What you do not understand is that function have their own workspaces. If you create thse variables outside the function, then c...

28 jours ago | 0

| accepted

Is it possible to include New Algorithms In reinforcement learning toolbox
There is no question about MATLAB in this. Answers is not customer support, nor is it the place to post feature requests. And no...

28 jours ago | 0

Determine polynomial coefficients so that it's roots lie on the unit circle
This seems simple enough, though the result may not seem terribly pretty. Brute force often has that result. syms a b z P = ...

29 jours ago | 0