Réponse apportée
Plot sinusoid equation of x(t)
Do not define a variable with the names: sqrt, exp, real, imag, plot If you do, then what do you think will happen when you the...

plus de 3 ans il y a | 0

Réponse apportée
Yapay sinir aglari ile satis tahmini problemi cozdugumde R2 degerinin negatif cikmasi ne ifade ediyor. R2 degeri hangi aralikta olmalidir?
Let me give an example. x = rand(100,1); y = 5 - 3*x + randn(size(x)); plot(x,y,'o') First, fit a LINEAR polynomial model t...

plus de 3 ans il y a | 0

Réponse apportée
Can we get functions from the curve fitting toolbox?
New users of splines ask this question so many times. I can understand the question. But a spline fit is not a simple thing wher...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
matlabFunction: Why the extra ".0" and why only sometimes?
Does it really, really, really matter? Actually, there is a (subtle) reason for the 2.0. You should recognize there is some pot...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
My code does does not go through the the if section
Rule # 1: NEVER test for exact equality of floating point numbers. (At least unless you fully, completely absolutely understand ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Linearize an exponential curve for feeding it in GAMS
What do you mean by linearizing a nonlinear curve? I can think of many ways to do that. But no matter what, a nonlinear function...

plus de 3 ans il y a | 0

Réponse apportée
How to find fit for function with exponential and oscillation term?
Why is it not working? First, you NEED good startign values. ALWAYS. Whenever you have exponential models and trig models. What ...

plus de 3 ans il y a | 0

Réponse apportée
Missing function from Computer Vision Toolbox
I would first look at the release notes for R2022b, here: https://www.mathworks.com/help/driving/release-notes.html But, perha...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
ans = Empty sym: 0-by-1 error in solving equation
So many times I see this mistake made. I can understand where it comes from. But it gets MATLAB (actually solve) confused. When...

plus de 3 ans il y a | 0

Réponse apportée
Faster than pdist for cityblock on integers?
This issue is surely not a problem with the distance computation as anything complicated, as much as it would be generating and ...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Vector calculation of HermiteH Polynomials
First, the two sets of polynomials are effectively the same thing, but for a transformation. As you said, the two are just ortho...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
integration of equation using gui
I can't execute this code in online MATLAB. So we can just look at what happens inside the function caled integration. First, i...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
how to create a polynomial interpolation of two variables
Sorry, but this is a common mistake made by people. You really have only ONE variable there, since x and y are linearly related...

plus de 3 ans il y a | 0

Réponse apportée
Projection problem as a for loop
Your main problem is that the vector Ca is not composed of double precision numbers. That causes the code to fial, because the f...

plus de 3 ans il y a | 0

Réponse apportée
how to work with a variable as a function of time?
Why MATLAB shows a partial derivative there, and not an ordinary derivative? syms theta(t) dTdt = diff(theta,t) Technically, ...

plus de 3 ans il y a | 0

Réponse apportée
How to Plot a 4D polyhedron
Do you have a 4-dimensional hypermonitor? Perhaps you use a holodeck to do your plots? Oh, wait, you cannot get things like that...

plus de 3 ans il y a | 0

Réponse apportée
cos block error (simulink)
Welcome to the wonderful, wacky world of floating point arithmetic. Is the number format long g pi/2 EXACTLY pi/2? cos(pi/...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How can I assign to a variable an interval of numbers.
You cannot just tell MATLAB that a normal variable is any value in some interval. Effectively, this requires interval arithmetic...

plus de 3 ans il y a | 1

Réponse apportée
Faster alternative to polyxpoly
Nothing is ever as fast as we want it to be. polyxpoly (part of the mapping toolbox) does a lot of work. And it needs to check f...

plus de 3 ans il y a | 0

Réponse apportée
How to find symmetry axis of set of 2D-points?
Interesting question. If there is a true exact line, one that forms a perfect line of symmetry, then the SVD should identify it....

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Got this ''Empty sym: 0-by-1''
I'll suggest you did things in the wrong order. syms x syms q % leave q as an unknown parameter for the moment. w = 2; eqn =...

plus de 3 ans il y a | 1

Réponse apportée
How to restore built-in functions in toolbox to the original version
NEVER EDIT MATHWORKS SUPPLIED FUNCTIONS. A rule I use for my own code is, if you change it, you own it. Any future problems are...

plus de 3 ans il y a | 0

Réponse apportée
How to represent [airfoil] coordinates as a polynomial
xy = [0 0 0.00369000000000000 0.0134500000000000 0.0170200000000000 0.0280700000000000 0.0336900000000000 0.03900...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
How to find the vector b if we know the RMSE?
There are infinitely many possible vectors b, for any given RMSE. And worse, they can have infinitely many possible shapes. This...

plus de 3 ans il y a | 0

Réponse apportée
A simultaneous linear equation with coefficients as variables
I assume you mean simultaneous linear equations where the coefficients are parameters that are assumed to be fixed, and not esti...

plus de 3 ans il y a | 0

Réponse apportée
Create Matrix of coefficients from nonlinear function
I'm sorry, but you are most certainly incorrect. A system of 4 equations like that would have 4 unknowns. In what you were sho...

plus de 3 ans il y a | 0

Réponse apportée
Create a boundary using points
This is often achieved using the CRUST algorithm. A quick search just found several links that have MATLAB code for CRUST. A qu...

plus de 3 ans il y a | 1

Réponse apportée
is Matlab code a lot faster than Excel formulas?
A problem is that you have said it is a lot of conditional expressions. The thing is, MATLAB will be fast, IF you can use the ca...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
How to optimize when the objective can be negatively influenced
This is just an optimization problem. Use any appropriate optimization solver. Note that the optimizers are typically minimizers...

plus de 3 ans il y a | 0

Réponse apportée
Pseudorandom sequence with costrains with frequent and infrequent elements
Simple. Start with the requirement. You have a sequence where you want 150 elements, 30% of them to be the infrequent case. Bu...

plus de 3 ans il y a | 0

Charger plus