Answered
How to contour this use matlab?
Are you asking how to write the code to take scattered data, and derive contours from pairs of points, using some variation of t...

6 years ago | 1

Answered
Generate random numbers in the second decimal point
Something like this is about the noise you want to see in that digit. If it is too large, then multiply by a little smaller numb...

6 years ago | 0

Answered
Error using betainc Z must be real and non-negative/polyfitn
You have 4 data points. You are trying to estimate a model with how many unknown coefficients? (20. Yes. 20.) I won't even get...

6 years ago | 0

Answered
How to find eigenvectors?
Why does V seem strange? A = [-2 0 2 2 -1 5 0 ...

6 years ago | 2

Answered
How to define a variable without using syms ?
fun = @(lambda) det(A - lambda*eye(size(A))); fun is a function of the unknown variable lambda. It is a function handle. It has...

6 years ago | 1

Answered
null(Matrix) returns an empty vector
That null returns an empty vector merely means your matrix is full rank. You cannot compute a non-empty null space of a full ran...

6 years ago | 1

| accepted

Answered
solution giving me imaginary answers.. Help me with this.
To be more clear, equations 5,6,8,9 merely establish the value of y1,y2,T,A. eqn5= y1-0.6==0; eqn6= y1+y2-1==0; eqn8= T==318....

6 years ago | 0

Answered
proble with differential equation
What did you do wrong? You wrote this: dsolve(diff(diff(f))+3*diff(f)==12*x-5), f(0) == 1, Df(0)== 0 And how is that different...

6 years ago | 0

Answered
Matlab 2020b won't open on Mac OS Big Sur
The simple solution of course to resolve any problems is to use R2021. It seems to run nicely on Big Sur. That is, given we are ...

6 years ago | 0

Answered
How to solve integral ==
You want to integrate exp(x), with limits from 1 to b?, and then to find b, such that the integral is 1? First, how do we perfo...

6 years ago | 0

Answered
Problems with Solving inequalities in matlab
That is not an error. It is a warning message, telling you there is a problem with what you have posed to solve. There is no ex...

6 years ago | 1

Answered
solutions via vpasolve of an irradical equation
vpasolve is a NUMERICAL solver in general. As such, it can generate only one solution to a general nonlinear equation. That solu...

6 years ago | 0

| accepted

Answered
System of 4 Non Linear equations
It looks like there are multiple unknowns. I see X, L2, t2, t1, h. And you tell us that L2 is a known value. So 4 unknowns, an...

6 years ago | 0

| accepted

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

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

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

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

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

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

6 years ago | 1 answer | 0

1

answer

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

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

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

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

6 years ago | 2

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

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

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

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

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

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

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

6 years ago | 0

| accepted

Load more