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

más de 3 años hace | 1

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

más de 3 años hace | 0

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

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 1

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

más de 3 años hace | 0

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

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 1

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

más de 3 años hace | 1

| aceptada

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

más de 3 años hace | 0

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

más de 3 años hace | 0

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

más de 3 años hace | 0

Respondida
How can we generate all n by n matrices with entries {0,1,2,...,m-1} for any natural numbers m and n?
So, for the simpler case of how to solve for ALL 2x2 matrices, containing the integers 0:6, just work in base 7. M = reshape(de...

más de 3 años hace | 0

| aceptada

Respondida
Is using the Trapz function equivalent to using the Mean function in MATLAB ?
NO. It is not the same thing. Can it, under some circumstances be approximately the same? Well, with multiple caveats, yes. Some...

más de 3 años hace | 0

Respondida
How can we generate all n by n matrices with entries {0,1,2,...,m-1} for any natural numbers m and n?
Assuming you mean with replacement, then yes, the total number of those matrices is m^(n^2). For m and n even reasonably large, ...

más de 3 años hace | 0

Respondida
How to solve a semi-definite programming with l1-norm objective?
This is an optimization problem, but I would argue it has been posed poorly. If you want to constrain the matrix A to be positiv...

más de 3 años hace | 1

Respondida
parameter Heligman pollard
Given only 17 data points, estimation of 8 highly nonlinear parameters will be almost impossible. Sorry. x1=[0;1;5;10;15;20;25;...

más de 3 años hace | 0

Respondida
exitflag in fminsearch
It is NEVER possible for fminsearch to return a decimal value for the exit flag. That presumes there was no accidental modificat...

más de 3 años hace | 0

Respondida
bilinear curvefit
This is essentially just a linear spline, so a pair of piecewise linear segments, continuous at the join point. The problem is,...

más de 3 años hace | 0

Respondida
Sorting of trigonometric functions
The simplest way to achieve what you want is to compute the sin, and then do the sort. Anything else you could do would be more ...

más de 3 años hace | 0

| aceptada

Respondida
finding values of implicit function of 3d
So you have the relation: a=0; b=10; T=3; e = exp(1); ux = 90; v = 70; syms u t x b^u*(ux/e*u)^(v*t/2) == b^(x/2) (Please...

más de 3 años hace | 1

Respondida
How to write an inequality constraint to solve NLP problem by fmincon
They are NOT TWO constraints. They are FOUR constraints. Just because you want to be efficient in how you write them in terms of...

más de 3 años hace | 0

| aceptada

Respondida
How do I plot from excel different columns file?
You were ALMOST there. Literally, almost. You need the x axis variable. Here is your array: numbers = [1 6 7 4 3 3 4 7;2...

más de 3 años hace | 0

| aceptada

Respondida
What is the equivalent of element-wise division in python when denominator contains complex number
That is the correct expression. Why it gives zero is hard to tell. You may have defined the variable i in your code already as a...

más de 3 años hace | 0

Respondida
FOR Loop Final Answer Problem
Your code predicts a 4 year tuition of 5500. Clearly that is not correct. How would I solve this, even if I was not using a loop...

más de 3 años hace | 0

| aceptada

Respondida
Matlab code contains comments with strange/unrecognisable characters. Can these be "translated" in English?
If you get no response, you could try Google Translate, though it does not seem to be terribly helpful today. It thinks the comm...

más de 3 años hace | 0

Respondida
monte carlo from lognormal distribution?
You have not told me the distribution quantiles yet. So I'll make some up. P = [1, 5, 10, 25, 50, 75, 90, 95, 99]/100; Q = log...

más de 3 años hace | 0

Respondida
Calculating the new beta parameters given two variables
I saw this question when you first posted, but it was not at all clear what was your question. Now I see you want to compute the...

más de 3 años hace | 0

| aceptada

Cargar más