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

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

| accepted

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 0

| accepted

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

4 years ago | 0

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

4 years ago | 0

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

4 years ago | 1

| accepted

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

4 years ago | 0

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

4 years ago | 0

Load more