Answered
Find maximum of a function 2 variables
Have you been told to use the symbolic toolbox? Of course, you can do so. But sometimes it is easier just to use a numerical too...

8 years ago | 0

Answered
Solving equation with bessel function
fun = @(x) besselj(0,0.5*x).*bessely(0,4.5*x) - besselj(0,4.5*x).*bessely(0,0.5*x); ezplot(fun) grid on How many of what ap...

8 years ago | 3

Answered
how to find max vaule of function handle?
help fminbnd help fminsearch Now, you might be confused, as those are minimization tools. But suppose you multiplied your func...

8 years ago | 2

Answered
Solve system of equations and inequalities with multiple solutions?
Remember that when you have inequalities, there are potentially infinitely many solutions. Even when you constrain the solutions...

8 years ago | 1

Answered
Solving nonlinear system of equations with different variables
Claudio, no, I'm sorry, but you do not have the answer. Lets look at your equations. syms R1 R2 R3 C1 C2 C3 R4 = 9; R5 = 1; ...

8 years ago | 2

Answered
Something is wrong in my line search gradient descent code. It gets stuck!
The immediate answer is to learn to use the debugger! For example, I ran your code. When I stepped down therough the code, I no...

8 years ago | 0

| accepted

Answered
Multidimensional numerical integration! is there any function to do that?!!
You do not say if the domain of integration is a simple one, perhaps a hypercube in R^6. It is not really relevant, but if the d...

8 years ago | 2

| accepted

Answered
how to pass a constrain in lsqcurvefit?
You cannot impose a strict inequality constraint. In fact, as you have learned based on your other question, sometimes even the ...

8 years ago | 0

| accepted

Answered
Why have negative value in result
LEARN TO USE THE DEBUGGER! If I step through your code, when i == 4, I get to this point: i i = 4 K>> [kseq(1:i),cseq(...

8 years ago | 0

Answered
Help with writing a function at computes a value z for grid points (x,y)
help scatteredInterpolant help griddata

8 years ago | 0

| accepted

Answered
What's the difference between sin(t) and square(t)?
Let me guess. You have defined t to be a symbolic variable? You can verify that using the whos command. Thus, if I do this: sy...

8 years ago | 1

| accepted

Answered
solve A * A^T *x = b by QR factorization
Can you solve this in two steps? Thus, if you know A*A' * x = b Does the associative law apply to matrix multiplication? (Yes....

8 years ago | 0

Answered
hi I have a problem with Matlab i want Computing error in Simpson program my program is:
To be picky, your very first error was a simple one. f=input('please insert integral : ','s'); You don't want the integral to...

8 years ago | 0

| accepted

Answered
finding space basis in matlab
A=[3 -1 7 3 9; -2 2 -2 7 5; -5 9 3 3 4; -2 6 6 3 7 ] A is a matrix, not a table. This is a table: T = table(A) T = 4Ă—1 tab...

8 years ago | 1

Answered
what is the maximum diameter of convex polygons ?
This is not a question about MATLAB, but since it already has an answer... Yes. You should be able to prove that the maximal di...

8 years ago | 0

| accepted

Answered
How can I get the statistics of the best fitted parameter in quadratic equation?
You have the curve fitting toolbox, and wish to obtain statistics about the ESTIMATED parameters. (I think KSSV has missed the p...

8 years ago | 0

| accepted

Answered
How to linearize a function?
It is not linear. So anything you do can only succeed as an approximation. Worse, since a singularity exists at x==0, a simple b...

8 years ago | 2

Answered
what's the point of Not enough input arguments?
Let me guess. You tried running the function. Or, you tried just calling objective as a command on the command line, thinking th...

8 years ago | 0

Answered
How to do "Cosine wave approximation“ for random plot data
easy peasy. Though I have no clue what it means to "forcef\ully approximate". x0 = [mean(y),max(y) - min(y)/2,0,3]; ft = fitty...

8 years ago | 0

| accepted

Answered
How to find the value that Maximize an argument
Normally functions like fminsearch and fminbnd minimize their objective. There are also many tools in the optimization toolbox, ...

8 years ago | 1

Answered
is there any function for adding zero ? related toa other matrix
The problem is you need to decide how you want to pad the arrays. For example, do you want to pad out by just extending each di...

8 years ago | 3

Answered
Plotting Gamma Distribution, log-normal and histogram
Hmm. I recall answering exactly this same question recently. For a second or so, I wondered if I should expect a spate of such ...

8 years ago | 0

Answered
Error using fzero (line 257) Function values at interval endpoints must be finite and real.
Look carefully at your objective function. I'll write it as function handle here for simplicity. Also, I was careful to use the ...

8 years ago | 2

| accepted

Answered
Solving linear/nonlinear systems of equations with the constraint that variables have to be the same value
Are you sure that fmincon not accept that kind of constraint? What is the purpose of the equality constraints that you can supp...

8 years ago | 1

| accepted

Answered
i need help in this matlab code
READ THE ERROR MESSAGE. Then look at your code. teta is a variable, correct? What is this? teta(1,0) How about this? teta...

8 years ago | 0

Answered
Calculating Circularity in MATLAB
For a circle, perimeter = 2*pi*r. area = pi*r^2. So the ratio you pose is indeed 1 for a circle. And for any other region, tha...

8 years ago | 0

Answered
how to get polynomial fit for the set of data points????
I see you have attached a .xlsx file. xy = [-0.020830515 13256.65 -0.020827342 12829.94 -0.020817825 12434.39 -0.020801967 ...

8 years ago | 0

Answered
'Unable to find explicit solution' - solving simultaneous equations
Resolve it? You cannot do so. You have posed 3 equations, yet you want to solve for 10 unknowns. There is no solution possible. ...

8 years ago | 0

Answered
How to find if a pair is within an unorthogonal area with parallel sides?
Was it really necessary to post this, when I just answered that same question in your last? Sigh. A better solution, rather tha...

8 years ago | 1

| accepted

Answered
How can I determine is (x,y) pair is inside an orthogonal area?
A better solution, rather than such nested, specific tests, is to use a tool like inpolygon. Make sure they are sorted, so it tr...

8 years ago | 3

Load more