Answered
How to get uncertainties in zeros of a poly using 'roots'?
One problem is the roots of a polynomial are not differentiable functions of those coefficients. This will cause headaches using...

10 years ago | 0

Answered
How to compute FFT?
Sorry. You are never going to make that code run as fast as FFT, or even reasonably close to it. You can always look for a C ...

10 years ago | 0

Answered
MATLAB and the new Macbook (2015/2016 12 inch)
MATLAB runs on the current Mac OS and the last OS version. What else can we possibly tell you, since you tell us nothing about t...

10 years ago | 0

Answered
Multivariate Linear Regression with Weibull errors
Do some reading about <https://en.wikipedia.org/wiki/Maximum_likelihood maximum likelihood estimation> . This is the general tec...

10 years ago | 0

| accepted

Answered
indicator variable in MILP
So I is not actually a variable in your problem, although you think of it as such. Perhaps as you have written the problem on pa...

10 years ago | 0

Answered
I need a function to calculate the hatched area
Since you have polygons that represent the boundaries, use polyarea.

10 years ago | 1

| accepted

Answered
Trying to handle a large matrix of nx101 dimensions where n is unknown at start of loop, and I only need the previous vector to calculate the current vector
Easy, peasy (with the right tools.) As an example, I'll simulate 101 parallel random walks in 1 dimension, stopping only when...

10 years ago | 1

| accepted

Answered
How to set upper bounds for linear programming?
These are NOT upper bounds. P1+P2+P3 <= 34000, P4+P5 <= 28000 They are linear inequality constraints. A linear inequalit...

10 years ago | 0

Answered
how to solve this nonlinear system of 4 equations using fsolve
Your error is that inside myfun, you call fsolve with myfun as an argument. So fsolve will then call myfun, which will call fsol...

10 years ago | 0

| accepted

Answered
Can i change iteration limit in robustfit command in matlab
Surprisingly, robustfit does not offer the iteration limit as an input. While you could, in theory, edit the code to change t...

10 years ago | 0

Answered
Determination of formula of a 3-variable problem
Congratulations! You are the millionth person to ask this question. Sadly, there is no award. :) The answer to your question ...

10 years ago | 0

Answered
Is there a method for solving DIFFICULT inequalities using Mupad?
Inequalities generally don't have a "solution". Usually, they have an entire locus of solutions. In one variable, thus a problem...

10 years ago | 0

Answered
what is the 'ro' in plot() mean?
READ THE HELP! The important part is here: Various line types, plot symbols and colors may be obtained with plot(X,Y...

10 years ago | 7

Answered
Permutations of string without repetitions
Since there are only two possible elements in the string... In the case of 2 distinct elements in the "string", assume a stri...

10 years ago | 2

Answered
Is it possible to do operations on 3D matrices without explicitly creating one?
I think you are asking why did you need to create A? You don't. You could do this: delta = [-1 -1 -1 -1; 2 2 2 2]; W = o...

10 years ago | 1

Answered
n-fold Cartesian product
For example: S = 1:3; n = 5; q = cell(1,5); s = repmat({S},1,n); [Q{1:n}] = ndgrid(s{:}); Q = reshape(cat(...

10 years ago | 1

| accepted

Answered
mixed integer program trouble defining proper objective function
If x and y are both variables to be estimated, then exactly how is the objective x.*y a LINEAR problem? Must be the new math. Th...

10 years ago | 0

| accepted

Answered
how accurate is the function fsolve?
I'll be lazy, and write the function as a function handle. Pfa=0.5; F = @(x) exp(-x.^2/2)./(x.^2/2) - sqrt(2*pi)*Pfa; ...

10 years ago | 1

| accepted

Answered
Sum of number of pairs?
[~,~,xtags] = unique(x); [~,~,ytags] = unique(y); accumarray([xtags(:),ytags(:)],1) ans = 3 1 ...

10 years ago | 0

| accepted

Answered
My function output is not what I was expecting, can someone have a look and suggest why this might be the case. Thanks
Without looking at your code, I first did some pencil and paper work. Heron's formula for an isosceles triangle, with sides ...

10 years ago | 0

| accepted

Answered
Linear regression with constraints on conditional y
Ok, only a guess here. I THINK you are trying to solve the problem y = alpha + beta*x for vectors x and y (assume col...

10 years ago | 2

| accepted

Answered
The Int command returns my original code
It could not find an analytical solution. What do you want it to return in that case? You can get a numerical solution. ...

10 years ago | 0

| accepted

Answered
Why does rref() make a sound sample sound different?
Why in the name of god and little green apples would you bother to do this? rref is a linear algebra tool, normally applied to m...

10 years ago | 0

Answered
matrix with general rule
Suggestion for what? It is impossible to create the zeroth column of a matrix in MATLAB. Indices cannot be negative. If the inde...

10 years ago | 0

Answered
Plotting scientific data in 1e-15
Use a plot with logged axes. help loglog help semilogx help semilogy

10 years ago | 1

| accepted

Answered
Plot fitting and equation of El Centro earthquake wave data
You must admit, that this is just a bit funny. Before you EVER do anything with your data, PLOT IT FIRST. If you learn nothing e...

10 years ago | 0

| accepted

Answered
How can I use dimensions in calculations i.e. 0.250(m/s^2) * 900(kg) =
MATLAB is not really designed to carry units with variables. (Dimensions, if you want to call it that. I'd suggests units is a b...

10 years ago | 1

Answered
HOW CAN I FIT NONLINEAR REGRESSION ON GIVEN DATA SET
You can never estimate c1 and c2 there. NEVER. Why? Suppose that you found the perfect values of c1 and c2? Lets say that 12 ...

10 years ago | 0

Answered
Why won't my plot graph a line?
Note that IF you want to plot a BLUE line connecting the points, with * symbols at the data points, then it is sufficient to cal...

10 years ago | 0

| accepted

Answered
Setting a constraint for a symbolic solve with a system of equations ?
You have4 equations in 4 unknowns. But then you want to add a "constraint". The fact is, a constraint is just an equation. A sim...

10 years ago | 0

Load more