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

fast 4 Jahre vor | 1

| akzeptiert

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

fast 4 Jahre vor | 0

| akzeptiert

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

fast 4 Jahre vor | 2

| akzeptiert

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

fast 4 Jahre vor | 0

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

fast 4 Jahre vor | 0

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

fast 4 Jahre vor | 1

| akzeptiert

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

fast 4 Jahre vor | 1

| akzeptiert

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

fast 4 Jahre vor | 1

| akzeptiert

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

fast 4 Jahre vor | 0

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

fast 4 Jahre vor | 0

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

fast 4 Jahre vor | 1

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

fast 4 Jahre vor | 1

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

fast 4 Jahre vor | 1

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

fast 4 Jahre vor | 1

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

fast 4 Jahre vor | 0

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

fast 4 Jahre vor | 0

| akzeptiert

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

fast 4 Jahre vor | 0

| akzeptiert

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

fast 4 Jahre vor | 0

Beantwortet
How to create a random matrix?
Can you generate a vector of numbers that all lie in the interval [0,1]? (I hope so. read the help for rand.) Can you insure th...

fast 4 Jahre vor | 0

Beantwortet
How to get log to = 1 or 0?
First, I seriously want to suggest is it a BAD idea to use the variable named log in your code. Why? Because if not, then the ne...

fast 4 Jahre vor | 0

Beantwortet
How to divide a color circle into 360 regions by degree and read the average RGB value of each region?
You are probably thinking about it the wrong way. How did you generate the color wheel? Or is that just a picture of a color whe...

fast 4 Jahre vor | 0

Beantwortet
Get a plot next to an existing plot
interparc is a function found on the file exchange (though written by me.) It is not part of MATLAB, until you get it from the f...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
Prolate spheroid surface area
You need to learn about the dotted operators, and why they are necessary. Yuou want to compute an element-wise operation, one t...

fast 4 Jahre vor | 0

Beantwortet
how we write summation with loop
Note that I think you are trying to write some other language, while you are using MATLAB. For example, this is NOT legal MATLAB...

fast 4 Jahre vor | 0

Beantwortet
Store trios of values from different vectors in an only vector
Please stop posting the same question multiple times. You made some effort though. First, learn to use meshgrid. [X,Y] = meshg...

fast 4 Jahre vor | 0

| akzeptiert

Beantwortet
I am trying to fit a line (to a blue curve in the image) using spline, pchip or makima function, however, theses function do not work properly (red line).
They don't work, because your curve does not describe a SINGLE valuesd function y(x). That is, for many values of x, there are T...

fast 4 Jahre vor | 0

Beantwortet
How do I find the eigenvalues and vectors of an equation not of form (A*x = b*x)?
This is a classic problem in eigenvalues, caled the generalized eigenvalue problem. That is, if you want to solve the eigenprobl...

fast 4 Jahre vor | 0

Beantwortet
How to convert decimals to Ascii characters?
The ascii encoding is not what you are asking to find, since this produces a different result. D = 0:63; char(D + 'A') Howeve...

fast 4 Jahre vor | 1

| akzeptiert

Beantwortet
Set of all bipartite graphs
No problem. Well, there probably IS a problem, as people are far too often surprised at how big things get. How do you generate...

fast 4 Jahre vor | 0

Beantwortet
I have an image that is 234x432x4 size wise. I tried imshow() and image(), but it doesn't work. What do I use?
You have a 4 channel image, most likely CMYK, certainly not RGB. For example: imshow(rand(234,432,3)) As you can see, there ...

fast 4 Jahre vor | 0

Mehr laden