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

4 years ago | 0

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

4 years ago | 1

| accepted

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

4 years ago | 1

| accepted

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

4 years ago | 0

| accepted

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 1

| accepted

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

4 years ago | 0

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

4 years ago | 1

| accepted

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

4 years ago | 0

| accepted

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

4 years ago | 1

| accepted

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

| accepted

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

4 years ago | 1

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

4 years ago | 0

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

4 years ago | 1

| accepted

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

4 years ago | 1

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

4 years ago | 0

Answered
How to represent [airfoil] coordinates as a polynomial
xy = [0 0 0.00369000000000000 0.0134500000000000 0.0170200000000000 0.0280700000000000 0.0336900000000000 0.03900...

4 years ago | 1

| accepted

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 1

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

4 years ago | 1

| accepted

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

4 years ago | 0

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

4 years ago | 0

Answered
maximization nonlinear problem and local maximum solution
Whenever I try to squeeze blood from a rock, all I ever do is get my hands all bloody with my own blood from my own fingers. The...

4 years ago | 0

Load more