Answered

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

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

16 dagar ago | 0

| accepted

Answered

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

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

16 dagar ago | 0

Answered

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

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

17 dagar ago | 0

Answered

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

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

17 dagar ago | 0

Answered

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

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

17 dagar ago | 0

Answered

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

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

19 dagar ago | 0

Answered

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

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

19 dagar ago | 0

| accepted

Answered

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

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

20 dagar ago | 0

Answered

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

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

20 dagar ago | 0

Answered

Please Help - How do I solve this for M

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

Please Help - How do I solve this for M

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

20 dagar ago | 0

Answered

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

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

20 dagar ago | 2

Answered

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

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

21 dagar ago | 0

Answered

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

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

21 dagar ago | 1

| accepted

Answered

how can I linear interpolation without using function

Simple. just use interp1. You are not allowed to use interp1q. But interp1 is not interp1q.

how can I linear interpolation without using function

Simple. just use interp1. You are not allowed to use interp1q. But interp1 is not interp1q.

21 dagar ago | 0

Answered

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

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

22 dagar ago | 0

Answered

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

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

23 dagar ago | 1

Answered

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

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

23 dagar ago | 0

| accepted

Answered

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

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

23 dagar ago | 0

Answered

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

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

24 dagar ago | 0

Answered

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

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

25 dagar ago | 0

| accepted

Answered

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

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

25 dagar ago | 0

| accepted

Answered

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

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

25 dagar ago | 0

Answered

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

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

26 dagar ago | 1

Answered

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

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

27 dagar ago | 0

Answered

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

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

27 dagar ago | 0

| accepted

Answered

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

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

27 dagar ago | 0

Answered

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

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

28 dagar ago | 0

Answered

Generate an iteration to determine the characteristic polynomial of several matrices

What can you do? Learn to use MATLAB properly. Here, that means to learn to use matrices and arrays, especially cell arrays. A...

Generate an iteration to determine the characteristic polynomial of several matrices

What can you do? Learn to use MATLAB properly. Here, that means to learn to use matrices and arrays, especially cell arrays. A...

29 dagar ago | 0

| accepted

Answered

Numerical analysis. Can't use syms, if not the aproximation is different.

This is numerical analysis. Hey, you are supposed to know this! Well, maybe the goal of the problem is to teach you these facts....

Numerical analysis. Can't use syms, if not the aproximation is different.

This is numerical analysis. Hey, you are supposed to know this! Well, maybe the goal of the problem is to teach you these facts....

29 dagar ago | 0

| accepted

Answered

Is it possible to automatically output many possibilities using a loop?

What you want to do does not seem to make a lot of sense, nor how you will get those initial factors. But I'm sure you have some...

Is it possible to automatically output many possibilities using a loop?

What you want to do does not seem to make a lot of sense, nor how you will get those initial factors. But I'm sure you have some...

30 dagar ago | 0

| accepted