Answered
How can I calculate 5 lions in a row?
I'm so used to coins having heads or tails though. ;-) I guess I can deal with lions. Anyway, your code gets at the question at...

4 years ago | 0

Answered
fminsearch for a function f(x,y) = x^4 -3xy+2y^2
This MUST be a homework question. But by now, you have multiple answers, that I think don't explain in any depth what you asked....

4 years ago | 0

Answered
Tic toc without output
First, using tic and toc are bad ways to compute the time to do something. Why? They compute only ellapsed time, and even then, ...

4 years ago | 0

Answered
How can I nest a function in a function?
See that I wrote hilbert differently. Feel free to use doubly nested loops there. But why? As well, NEVER name a function the s...

4 years ago | 0

Answered
I want to find 4 consecutive number which is present in array.
Easy. What property does a sequence of 4 consecutive numbers have? I suppose there may be many such properties, for example, the...

4 years ago | 1

Answered
How to I plot a graph that reflects the percentage of change of an equation when an varable changes
Your question is not one with an always easy answer. Effectively, you are asking for a sensitivity analysis. The basic answer wo...

4 years ago | 0

Answered
how to split a string (char value) with zero in front of it but showing the value in the matrix?
MATLAB does NOT allow you to store or represent an integer as the number 0100. If you try, you will get 100. The leading zero go...

4 years ago | 0

Answered
different result of PCA function and my PCA
Congratulations! You are the 1 millionth person to have this happen, and then be confused. Your reward is a free trip to Newark,...

4 years ago | 0

Answered
Using GA to optimize a fuction of a fuction that is dependent on the
I don't see the problem. If you know x1,x2,x3, then you can compute b. You tell us that. Yes, it is a nonlinear equation. So wh...

4 years ago | 0

Answered
Why do I get unrecognized function for a built in function?
which psdg -all As you can see, psdg does not exist as a MATLAB function, in any toolbox we can search, and they are all pretty...

4 years ago | 0

Answered
i want to solve a 297 linear equations with 298 unknown variables
There are some serious problems in this. I won't even get into the literal impossibility of what you have done, to write down an...

4 years ago | 1

| accepted

Answered
Slope of line intersecting with y axis
What has this to do with MATLAB? The axis has NOTHING to do with the slope!!!! The slope in both cases is (y2 - y1)/(x2 - x1)....

4 years ago | 0

Answered
A random symmetric matrix whose row and column sum is equal to one and diagonal is zero
If it is symmetric, AND the row sums are 1, then so are the column sums. But if you are not picky about the distribution of th...

4 years ago | 1

| accepted

Answered
Is there a reason why Triangular is not an option in fitdist?
Is there a GOOD reason why not? Probably not, but then I don't expect a triangular distribution is in high demand either. Could ...

4 years ago | 0

| accepted

Answered
Complex number division of matrix over a vector
You SAID divide. You did not say you were solving a linear system of equations, as that is what backslash does. Regardless, I'll...

4 years ago | 2

| accepted

Answered
Solving Trigonometric Function Equations with Time varying Parameters by MATLAB
Way better than using fsolve is to compute the analytical solution. That is, if t is the time varying parameter, then we have s...

4 years ago | 0

Answered
Get orthogonal points on other spline
I did NOT say it was impossible to solve. I did say that what you are asking does NOT mean the closest poiints on curve 2 will h...

4 years ago | 0

Answered
I do not understand why this script {8/2<5*3+1>9} with logical operators gives NO (0)?
Just because people use a specific mathematical shorthand, does not mean that shorthand is implemented in MATLAB syntax. In this...

4 years ago | 1

| accepted

Answered
Any function to get adjacency matrix of 2D M by N lattice?
Simple. Given N and M, the code below will work. Note that it builds the matrix in sparse form, since a large such matrix will i...

4 years ago | 1

| accepted

Answered
How can I use fzero on these two functions?
Why in the name of god and little green apples do you want to transform the function, by taking the log? Just move the exponenti...

4 years ago | 1

| accepted

Answered
How can i convert binary number to galois field integer number ??
Easy enough. Assuming bits in the form of a character string of length 3, I'll start with all possible 3 bit numbers in binary. ...

4 years ago | 0

Answered
How can i multiply galois field integer number with one another?
Assuming you are talking about doubles, that contain members of such a field, you just multiply, then use mod. For example, here...

4 years ago | 0

Answered
Is there any mathematical method of curve fitting for cases when the modeling function is unknown (another degree of freedom for the form of the function)?
No. There is no magical method that will look at your curve, and decide what form it has, and then fit that form. And yes, that ...

4 years ago | 1

Answered
how do i get the the fifth and fourth number form behind?
You want the 5th and 4 decimal digits of the numbers, as a 2 digit number? Surely this is homework. But since you already have a...

4 years ago | 1

Answered
If one coordinate of the point is given how to find another coordinate?
This reduces to the so called modular square root problem. That is, solve for x, such that mod(x^2,p) == r where p and r ...

4 years ago | 1

Answered
Hi everyone, can someone help me with this double sum ?
Surely you can use a loop? Actually just nested loops? Perhaps your problem is MATLAB does not allow a zero index, yet you have ...

4 years ago | 1

Answered
Calling a custom function in fittype()
Easy peasy. ft = fittype('a + b*exp(c*x)','indep','x') You can now use this as you wish. Oh wait. Maybe what you are asking i...

4 years ago | 0

Answered
Question about internal aithmetics
This is a subtle point. Actually a very good question. We don't need to look at 1e20. the number 1 is entirely adequate. x = 1;...

4 years ago | 0

| accepted

Answered
How to apply for Random function ?
Random is a function in MATLAB, but it is part of the stats toolox. help random which random So either to do not have the sta...

4 years ago | 0

| accepted

Answered
Stiff Differential Equation solver (Euler?)
You SERIOUSLY do not want to use a standard Euler's method to solve a stiff ODE. You will be wasting your time. Why do you think...

4 years ago | 0

Load more