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

26 dagen 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...

28 dagen 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...

28 dagen 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...

28 dagen 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 ...

29 dagen 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...

29 dagen 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...

30 dagen 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 ...

ongeveer een maand 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...

ongeveer een maand 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...

ongeveer een maand ago | 0

| accepted

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

ongeveer een maand 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...

ongeveer een maand 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 ...

ongeveer een maand 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...

ongeveer een maand 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...

ongeveer een maand 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...

ongeveer een maand 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...

ongeveer een maand 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.

ongeveer een maand ago | 0

Answered
4x4 matrix with numbers from 1 to 4 in specific order
Hint: What does flip do? Could you use it to "flip" the order of those numbers?

ongeveer een maand ago | 0

Answered
I want to find the value of k
syms x1 x2 x3 x=[x1;x2;x3]; f1=x(1)^3+12*x(2)+1; f2=x(2)^9+5*x(1)-3; f3=x(2)*x(3)^2+8; Here is the matrix k. k=[diff(f1,x(...

ongeveer een maand ago | 2

Answered
smooth step function with rise time
You cannot solve the problem you claim to want to solve using a simple logistic. It does not have the flexiibility to control bo...

ongeveer een maand ago | 0

Answered
Automated Bisection Method on a function tan(a)-tan(b)=0
I'm sorry, but it is provably impossible to make bisection (or any scheme like it) always find all solutions of an arbitrarily c...

ongeveer een maand ago | 0

Answered
Why do I see a singular matrix warning here?
The issue is not a problem with eig, except in our expectations of what eig can do. And those expecations are fueled by our expe...

ongeveer een maand ago | 0

Question

Why do I see a singular matrix warning here?
I've posted this question as a "response" to a question posed by someone else, but as an answer to another question. Since I can...

ongeveer een maand ago | 1 answer | 1

### 1

answer

Answered
Find the file number when a condition meets
Beginners do this sort of thing. They are tentative, almost afraid to use MATLAB, even when they think they need to. So they lea...

ongeveer een maand ago | 0

| accepted

Answered
1D randomwalk matlab tutorial on youtube
I think you need to read things like the syntax of various tools, like while. You also need to learn the syntax of just how to w...

ongeveer een maand ago | 0

Answered
Generate all possible combinations summing up to a given number
These are commonly known to mathematicians as integer partitions, thus the ways we can write an integer as a sum of smaller inte...

ongeveer een maand ago | 0

Answered
How many terms of series are required to get accuracy upto three decimal point. That is series sum correct upto 3.141
@ajeet sahu - what you do not seem to understand is that the script you have shown IS performing the correct iterations, The pro...

ongeveer een maand ago | 0

| accepted

Answered
Constants not recognized in integral
You are still thinking that you are using some other language, where you need to declare variables as doubles. This line does n...

ongeveer een maand ago | 0

Answered
How can i write this equation: d = obs + sqrt(alfa*Cd^0.5)*randn(nd, ne)
Do I understand you correctly? obs is an array of size 51x71x3? Or is it a vector of that length? Regardless... alfa is a scala...

ongeveer 2 maanden ago | 0