Answered

start a predictive maintenance

Your explanation has offered no reason for anyone to expect that learning to use a tool like MATLAB would be a good way to solve...

start a predictive maintenance

Your explanation has offered no reason for anyone to expect that learning to use a tool like MATLAB would be a good way to solve...

18 giorni ago | 0

Answered

NLINFIT error of model being overparameterized

When you learn your model is overparameterized, there is no magical solution. You can do one of two things: Use a simpler model...

NLINFIT error of model being overparameterized

When you learn your model is overparameterized, there is no magical solution. You can do one of two things: Use a simpler model...

19 giorni ago | 0

| accepted

Answered

Selecting random element without replacement with capacity constraint

So where is the problem? Select a random set of customers. If that set violates the constraint, then try another set. If you don...

Selecting random element without replacement with capacity constraint

So where is the problem? Select a random set of customers. If that set violates the constraint, then try another set. If you don...

19 giorni ago | 0

| accepted

Answered

Trying to learn griddata function.

You have two (actually, three) problems here. First, GRIDDATA is a interpolation tool. What does interpolation mean? It means i...

Trying to learn griddata function.

You have two (actually, three) problems here. First, GRIDDATA is a interpolation tool. What does interpolation mean? It means i...

19 giorni ago | 1

Answered

Why is 0.3 - 0.1 - 0.2 ~= -0.1 - 0.2 + 0.3

The answer arises by understanding how floating point numbers are stored in MATLAB. Here are 0.3, 0.1, 0.2, expressed each as w...

Why is 0.3 - 0.1 - 0.2 ~= -0.1 - 0.2 + 0.3

The answer arises by understanding how floating point numbers are stored in MATLAB. Here are 0.3, 0.1, 0.2, expressed each as w...

19 giorni ago | 1

| accepted

Question

Why is 0.3 - 0.1 - 0.2 ~= -0.1 - 0.2 + 0.3

I see this same question over and over again on Answers. Why do computations like this fail in MATLAB? 0.3 - 0.1 - 0.2 == -0.1 ...

19 giorni ago | 1 answer | 0

Answered

Solving Equations in MATLAB

SOME problems can be handled to find all solutions. syms x >> xsol = solve(cos(x) == 0,'returnconditions',true) xsol = s...

Solving Equations in MATLAB

SOME problems can be handled to find all solutions. syms x >> xsol = solve(cos(x) == 0,'returnconditions',true) xsol = s...

19 giorni ago | 0

Answered

interpn vs griddata, not producing the same results when interpolation is only in 2 dimensions

Are you testing for EXACT equality, which is something you should absolutely never do in any floating point environment? Instead...

interpn vs griddata, not producing the same results when interpolation is only in 2 dimensions

Are you testing for EXACT equality, which is something you should absolutely never do in any floating point environment? Instead...

20 giorni ago | 0

Answered

How can ı generate 100 samples of zero-mean, unit variance gaussian noise ?

You need to read the manual. Read the getting started tutorials. (Try the MATLAB Onramp.) Else you will be asking hundreds of ba...

How can ı generate 100 samples of zero-mean, unit variance gaussian noise ?

You need to read the manual. Read the getting started tutorials. (Try the MATLAB Onramp.) Else you will be asking hundreds of ba...

20 giorni ago | 0

| accepted

Answered

inline VS anonymous functions

I think what people are not drawing attention to here are the real differences between inline and anonymous functions/function h...

inline VS anonymous functions

I think what people are not drawing attention to here are the real differences between inline and anonymous functions/function h...

20 giorni ago | 1

Answered

How to solve a time-varying polynomial with fractional exponents?

First, why would you possibly home for a UNIQUE solution? Be serious. There will be multiple solutions, some of them probably co...

How to solve a time-varying polynomial with fractional exponents?

First, why would you possibly home for a UNIQUE solution? Be serious. There will be multiple solutions, some of them probably co...

21 giorni ago | 0

Answered

Amplitude and phase estimation of a sinusoidal signal

Using tools from the curve fitting toolbox (fit). Or the optimization toolbox (lsqnonlin, or lsqcurvefit). Or the statistics too...

Amplitude and phase estimation of a sinusoidal signal

Using tools from the curve fitting toolbox (fit). Or the optimization toolbox (lsqnonlin, or lsqcurvefit). Or the statistics too...

22 giorni ago | 0

Answered

Solving complicated system of symbolic equations

Let me see.... eqn1 is a scalar, so it adds one piece of information. The same is true of eqn3. eqn2 is three pieces of informa...

Solving complicated system of symbolic equations

Let me see.... eqn1 is a scalar, so it adds one piece of information. The same is true of eqn3. eqn2 is three pieces of informa...

24 giorni ago | 0

| accepted

Answered

Minimizing a function of two variables

First, LEARN TO USE MATLAB SYNTAX. That is, when you write an exprtession, learn to use MATLAB syntax when you write an expressi...

Minimizing a function of two variables

First, LEARN TO USE MATLAB SYNTAX. That is, when you write an exprtession, learn to use MATLAB syntax when you write an expressi...

24 giorni ago | 0

Answered

Local optima problem in minimization problem

On problems like this when you do not state the complete story we always find ourselves needing to read your mind. What is your ...

Local optima problem in minimization problem

On problems like this when you do not state the complete story we always find ourselves needing to read your mind. What is your ...

25 giorni ago | 0

| accepted

Answered

How do I find the itegration's order of convergence?

Um, you cannot just magically know the order of convergence of something. There is no simple rule where you can look at code and...

How do I find the itegration's order of convergence?

Um, you cannot just magically know the order of convergence of something. There is no simple rule where you can look at code and...

27 giorni ago | 0

Answered

Solving a linear ODE with along with an unknown constant.

syms k certainly does work. Ta = 20; syms k syms T(t) ODE = diff(T,t) == -k*(T-Ta); dsolve(ODE) ans = C1*exp(-k*t) + 20...

Solving a linear ODE with along with an unknown constant.

syms k certainly does work. Ta = 20; syms k syms T(t) ODE = diff(T,t) == -k*(T-Ta); dsolve(ODE) ans = C1*exp(-k*t) + 20...

27 giorni ago | 0

| accepted

Answered

suggestion: please put an option to display variable data type in head function

This is not even a question. Answers is not a place to post feature requests for MATLAB. Answers is entirely composed of volunt...

suggestion: please put an option to display variable data type in head function

This is not even a question. Answers is not a place to post feature requests for MATLAB. Answers is entirely composed of volunt...

27 giorni ago | 0

| accepted

Answered

Find the area of the regions enclosed by the curves y=x^2-2x, y=x.

You know the x locations of the two points where the curves intersect. Is the area not just the integral of y2-y1 between those...

Find the area of the regions enclosed by the curves y=x^2-2x, y=x.

You know the x locations of the two points where the curves intersect. Is the area not just the integral of y2-y1 between those...

28 giorni ago | 0

Answered

Help me find the eigenvalues for the five interior vertices of the differential equation with the polynomial method

I've never heard this called "the polynomial method". And if your ODE was only slightly more complicated, then the result would ...

Help me find the eigenvalues for the five interior vertices of the differential equation with the polynomial method

I've never heard this called "the polynomial method". And if your ODE was only slightly more complicated, then the result would ...

28 giorni ago | 1

| accepted

Answered

Since the matrix is near to singular I have tried pinv to solve but getting too deviated answers. Can you please let me know if there is any other way to solve the equations

So what can we say about the solution? David and Walter have both told you the matrix really is singular. A singular matrix will...

Since the matrix is near to singular I have tried pinv to solve but getting too deviated answers. Can you please let me know if there is any other way to solve the equations

So what can we say about the solution? David and Walter have both told you the matrix really is singular. A singular matrix will...

29 giorni ago | 1

Answered

I need general MATLAB bvp4c code for study .

Then you are in luck. bvp4c is already available as part of MATLAB. What is the problem? Why do you say you need it? You already...

I need general MATLAB bvp4c code for study .

Then you are in luck. bvp4c is already available as part of MATLAB. What is the problem? Why do you say you need it? You already...

circa un mese ago | 0

Answered

roots() function does not give exact roots

What it seems is people have not explained the "cause" of the problem as seen. format long g roots( [1 -3 3 -1] ) Remember th...

roots() function does not give exact roots

What it seems is people have not explained the "cause" of the problem as seen. format long g roots( [1 -3 3 -1] ) Remember th...

circa un mese ago | 2

Answered

random numbers in Matlab 2009

There is no alternative, since rang does not appear to be a MATLAB function, nor was it ever a MATLAB provided function. I also ...

random numbers in Matlab 2009

There is no alternative, since rang does not appear to be a MATLAB function, nor was it ever a MATLAB provided function. I also ...

circa un mese ago | 1

Answered

Set Limits for x in optimization using fminunc

If you have fmincon, then you also have fmincon so there cannot be a problem. This is not a question of how to get fminunc to so...

Set Limits for x in optimization using fminunc

If you have fmincon, then you also have fmincon so there cannot be a problem. This is not a question of how to get fminunc to so...

circa un mese ago | 0

Answered

How can I solve a problem using Constrained Nonlinear Regression?

Sorry. lsqnonlin cannot handle general equalty or inequality constraints. Only bound constraints, and while you do have bound co...

How can I solve a problem using Constrained Nonlinear Regression?

Sorry. lsqnonlin cannot handle general equalty or inequality constraints. Only bound constraints, and while you do have bound co...

circa un mese ago | 2

Answered

Solving non linear system of equations

Are theta_rotor, theta_stator, and u_axial all known values? If not, then no, fsolve cannot solve it. But if we assume those are...

Solving non linear system of equations

Are theta_rotor, theta_stator, and u_axial all known values? If not, then no, fsolve cannot solve it. But if we assume those are...

circa un mese ago | 1

Answered

Integrating without using the symbolic toolbox

This is an arc length integral. Apparently you wish to compute the length of that curve in the plane, with x going from 0 to pi/...

Integrating without using the symbolic toolbox

This is an arc length integral. Apparently you wish to compute the length of that curve in the plane, with x going from 0 to pi/...

circa un mese ago | 1

| accepted

Answered

Trying to solve this equation exp^(-((2.*n+1).*pi/2).^(2)*t)/(2.*n+1).^2 where n varies from 0 to infinity and the final equation is equated to zero to get value of 't'

First, exp is a function. Use it like this: syms n t exp(-((2.*n+1).*pi/2).^(2)*t)/(2.*n+1).^2 That presumes your parens were...

Trying to solve this equation exp^(-((2.*n+1).*pi/2).^(2)*t)/(2.*n+1).^2 where n varies from 0 to infinity and the final equation is equated to zero to get value of 't'

First, exp is a function. Use it like this: syms n t exp(-((2.*n+1).*pi/2).^(2)*t)/(2.*n+1).^2 That presumes your parens were...

circa un mese ago | 0

Answered

sinh solver and numerical solution

One mistake in what you are both doing: Do not use == there to form equ1. Just subtract off the right hand side constant. The =...

sinh solver and numerical solution

One mistake in what you are both doing: Do not use == there to form equ1. Just subtract off the right hand side constant. The =...

circa un mese ago | 0