Answered
convert signal to morse code
As @dpb suggested: Use findpeaks to locate each peak. (Ignore the tiny ones. So anything that is significantly above the baseli...

5 years ago | 1

| accepted

Answered
Writing exponent in pplane for Matlab
pplane is not part of MATLAB, so it must be a package from the file exchange, or some other source. You might want to contact th...

5 years ago | 0

Answered
Assign the same variable to all elements of a Matrix
As with Matt, I have not used the code, but this should work. M = repmat(sdpvar(1,1),[10 10 10]);

5 years ago | 0

Answered
Nested for loop to generate random matrix
No. That simply is not true, that only the first row and column are random. for i = 1:10; %Generates random angle for each par...

5 years ago | 1

Answered
write a polynomial answer in one operand
I assume that is a prime outside of the parens, which makes no sense unless you intend it as the complex conjugate. But even the...

5 years ago | 0

Answered
Does intlinprog find a local minimum or global minimum?
Another issue is that it is easy to formulate a problem with multiple solutions, all equally good. intlinprog should find one of...

5 years ago | 1

Answered
Using curvefit for conditional functions
You CANNOT fit that model. Why not? a and b are not independent parameters. They look as if they are. Ignoring the part where ...

5 years ago | 0

| accepted

Answered
Can't solve integrate with unknown value and after an equation with it
First, you don't need to use vpasolve. Solve will do. Leave it in a fractional form, rather than converting to a finite number o...

5 years ago | 0

Answered
Question about vectorized fminsearch using flipud
I fail to undertand your question. It minimizes what you give it. If the flipud is in there, your objective function is differen...

5 years ago | 0

Answered
Find first n roots of transcendental equation
First, the function you have written does not seem to have multiple roots. In fact, the only solution it seems to have is zero. ...

5 years ago | 0

Answered
Explicit solution could not be found.
And, your question is? What does this mean: "Explicit solution could not be found" Surely, if it just tried harder, it wo...

5 years ago | 0

Answered
Question about fminsearch with vector input and output
You want to use fminsearchbnd with 300 UNKNOWNS? REALLY 300? THREE HUNDRED? SIGH. Are you not the one I already told not to use...

5 years ago | 0

Answered
Solve ode system numerically
Not that hard. As @William Rose sugggests, the mass matrix solves it, but you need to look carefully at the problem. J is given...

5 years ago | 1

Answered
Find nonlinear function to optimize parameters
NO. Do NOT use fminsearchbnd to try to optimize a problem with 36 parameters. You will be wasting your time and mine, when you n...

5 years ago | 1

Answered
How to fit a function with an integral term to a set of data?
Certainly for this problem, it is easiest to just perform the integration in advance. The integral you show will have a solution...

5 years ago | 2

Answered
multiple equations multiple variables solve command does not work
You asked a very general question at the end, how to solve a problem with a different number of unknowns than equations, and at ...

5 years ago | 2

| accepted

Answered
Struggling with fminsearch with vector inputs
Fminsearch should NEVER be used with more than around say 6-8 unknowns. 30 unknowns is just impossible for fminsearch. PERIOD. I...

5 years ago | 0

Answered
How can I define square of a handle function inside an integral?
kk is a function handle, as is kkk. (Really creative names there. Note that using better, more descriptive names will greatly im...

5 years ago | 0

| accepted

Answered
multiple linear regression warning: x is rank deficient to within machine precision.
As I pointed out in my comment to Star Strider, your problem is rank deficient. A = [1 0 0 0 0 1 0 ...

5 years ago | 0

| accepted

Answered
How do i convert base-2 number with decimal point into base-10?
BIN2DEC does NOT support numbers with a decimal point in them. You can want it to happen, but it won't. Wanting code to behave a...

5 years ago | 0

Answered
Involve fminbnd in optimoptions
Note that fminbnd is not provided as part of the optimization toolbox. As well, fminbnd has been around a long time. So optimopt...

5 years ago | 0

| accepted

Answered
matrix interplation, increasing matrix elements 13 to 50
help interp2

5 years ago | 0

Answered
Does it make sense to find the null space of a symbolic matrix?
Is this the matrix? It would help IF you are asking a question about MATLAB, to use MATLAB symtax! syms a b c d e f L = [ -a-f...

5 years ago | 0

Answered
How to draw a graph for function with constraints?
You want to plot a function, that appears to be a function of two variables. But the equality constraint reduces the problem to ...

5 years ago | 0

Answered
Implementing additional constraints in assignment problems.
Is there some general function that has been written to solve this problem? No. Of course not. Why not? There is likely no uniq...

5 years ago | 0

Answered
13x8 Matrix Cubic Interpolation
Simplest is to just read the help for interp2. It is silly to use a lower level tool when a high level tool does exactly what yo...

5 years ago | 1

Answered
Result for solve( ) with minimized number of parameters
The problme is, the "minimal" solution that you ask for is not the complete solution. You asked solve to provide a solution. How...

5 years ago | 0

| accepted

Answered
How to solve set of equations with inequality using fsolve?
First, fsolve does not solve bound constrained problems. (What you have.) Second, even if it did, fsolve does not solve problem...

5 years ago | 0

Answered
Why my imaginary graph is straight line?
fplot(t,imag(i1(t)),'LineWidth',1.5) To my eyes, this does not look straight. But then I may need new glasses.

5 years ago | 0

Load more