Answered
Sum of series with differentaition
There is no reason to use symsum on this. syms t f = sym(0); for k = 1:10 f = f + zeta(2*k).*(4.^k-2)/4.^k*diff(t^(-1/2),...

8 years ago | 1

Answered
Generate a cone with a point and angle
This question initially has absolutely nothing to do with MATLAB, because you have no idea how to solve it. Until you understand...

8 years ago | 1

| accepted

Answered
Monte Carlo Integration in MATLAB, help?
What is the problem? samplesize = 1000; fxy = @(x,y) x.*y.^2; %integrand x = 2*rand(1, samplesize); %uniform x ~(0,2) y = (x...

8 years ago | 5

| accepted

Answered
invers matrix error calculate
You cannot use inv on a 2x28 array. So either of these forms are equally valid: omega=pinv(J)*[OA*sind(alfa); OA*sind(alfa)]; ...

8 years ago | 0

Answered
Is MATLAB case sensitive in all aspects?
VARIABLE and FUNCTION names are case sensitive. So Plot is different from PLOT, different from plot, if those are variables or f...

8 years ago | 2

| accepted

Answered
How can i calculate the uncertainty for the division of two arrays having the error for the two arrays?
As is often the case, there has been far too little information provided to give an intelligent answer. You have two vectors of...

8 years ago | 0

Answered
How to get a matrix based on certain conditions without using if,else?
Given a matrix that has 1 or 0 in it, and you want to replace the 1's with 5's, and 0 with 1's? Or is it the other way around? A...

8 years ago | 1

Answered
How to find the inverse of a 6*2 matrix
Um, yes. And no. Or no and yes. A 6x2 matrix has no inverse. It never, ever will. There is no matrix that you can right-multipl...

8 years ago | 1

Answered
Subscript indices must either be real positive integers or logicals.
You should read the error message. Then think about what you did. n=-10:1:10; x(n)= exp(1)^(-0.1+1i*0.3)*n; So you decided to...

8 years ago | 0

Answered
Matlab Cannot Find Functional Inverse
No. It is because there is no analytically writable inverse that it can find. Look at what you have done. Don't just compute so...

8 years ago | 1

Answered
How to fit a curve and get multiple coefficients?
Huh? K1*K2/K1+K2 I'm pretty sure that is just K2 + K2 = 2*K2, since the last time I checked, K1*K2/K1 was just K2. So you p...

8 years ago | 0

| accepted

Answered
Is there any better way for doing this specific "matrix multiplication"?
Full matrices are faster here, because your matrices are simply not sparse, in the sense that you gain nothing from them as bein...

8 years ago | 1

| accepted

Submitted


Divisors of a number, perfect, amicable, and sociable number
Tools to work (and play) with the divisors of a number

8 years ago | 2561 downloads |

5.0 / 5

Answered
How to detect circularity more accurately than 4*pi*A/P^2?
I remember discussing this exact question recently. In fact, the paper you reference answers the question as to why things fail....

8 years ago | 4

| accepted

Answered
what is the difference between fitting a plane of point cloud after introducing some rotation on the data and fitting the point cloud as it is?
It depends on the algorithm used for the fit. Why would it not? For example, if you fit a model of the form z = a*x + b*y ...

8 years ago | 0

Answered
Tools required for biological network analysis
This is literally impossible to answer as is. It appears: https://en.wikipedia.org/wiki/Biological_network that biological net...

8 years ago | 0

Answered
How do I get rid of noise in my data matrix?
An if statement? Well you can try anything you want. But you won't be happy. Instead, just use a simple moving average filter, o...

8 years ago | 0

| accepted

Answered
Is there a way to count the number of Hamiltonian circuits that exist in a graph?
Well, you are trying to do this. Making an effort is important. Sometimes it becomes necessary to try some numbers out. n = 1;...

8 years ago | 1

Answered
6 set of equations, 6 unknowns, empty matrix error.
You have INEQUALITIES. There is no unique solution, instead, infinitely many solutions in general. You cannot solve the problem ...

8 years ago | 1

Answered
what is the meaning of following code?
When you don't understand a line of code, take it apart. Start on the inside most part. 4*i+j : Variables named i and j must ex...

8 years ago | 0

Answered
Is it possible to set rules for calculating permutations of column vectors?
No, it is not possible to set rules on permutations. At least not unless you write the code to compute those permutations. You h...

8 years ago | 0

Answered
The inverse of a function numerically with N-terms
I'm confused as to what your question is, since I answered the last question. Then you asked essentially the same question. The...

8 years ago | 0

Answered
How to find the inverse of a function numerically
Multiply by zeta^2, and collect terms. As long as zeta is not zero, that is not a problem. Your equation reduces to b*m2 + ...

8 years ago | 2

| accepted

Answered
Summation from 1 to infinity
A fundamental, basic trick that anyone who is summing series should understand is WHY you benefit from the use of logs. It is ...

8 years ago | 0

Answered
Adding all the digits in a large number gives me an incorrect result
How large is 100! ? factorial(100) ans = 9.33262154439441e+157 So a number with what, 158 digits? How many digits does...

8 years ago | 2

| accepted

Answered
trying to find solutions to functions
A solution to two equations ya and yb, in one unknown, x? It generally won't exist. Let me look at them. ya = (sin((2./(x+2))...

8 years ago | 0

Answered
How can I make a code with if/ else function?
Part of your problem is in this test: else k==[] Why is that an issue? Because you can't do it. For example, suppose I create ...

8 years ago | 0

Answered
solving newton raphson method (use of sym results in error)
How are you providing the function? Is it an inline function? So something like this: f = inline('3.*x.^2+4.*x-2') f = I...

8 years ago | 1

Answered
Normalize vector in 3D space
V = V./norm(V); The default for norm is the 2-norm, so what you want.

8 years ago | 0

Answered
quadprog and fmincon provide very different results on the same problem
Why are you doing this? Really, why are you trying to solve it using that kluge of approaches? Go simple. Don't over-complicate ...

8 years ago | 1

| accepted

Load more