Réponse apportée
Generate normal distribution with LGC random issue
After looking at your code in my other answer, the problem clearly reduces to your RNG. Is that even a valid linear congruential...

plus de 3 ans il y a | 0

Réponse apportée
Generate normal distribution with LGC random issue
I might check that you REALLY are using the same expressions for both of the transformations to Normal. Have you done so? (STRON...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Does anyone have the source code of the regression decision tree in MATLAB?
You already have the source code. For example, just do this in MATLAB: type fitrtree The code is written in MATLAB itself, so ...

plus de 3 ans il y a | 0

Réponse apportée
How to find mutually orthogonal vectors with unknown?
In theory, Gram-Schmidt would be sufficient. https://en.wikipedia.org/wiki/Gram–Schmidt_process In practice, if the number of ...

plus de 3 ans il y a | 0

Réponse apportée
Random numbers generation problem
Just compute the set of all numbers in the interval you care about that are NOT divisible by those small primes. Technically, th...

plus de 3 ans il y a | 0

Réponse apportée
Match two columns with names/strings that are not 100% identical
Searching for degree of similarity is not a completely trivial task. In a sense, you want to describe the distance between two "...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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....

plus de 3 ans il y a | 0

Réponse apportée
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, ...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 1

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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,...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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)....

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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. ...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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 ...

plus de 3 ans il y a | 1

Réponse apportée
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...

plus de 3 ans il y a | 1

Charger plus