Answered
Generate large nchoosek in batches?
No. Nchoosek is not written in any way to allow you to choose only some reduced subset. In fact, the set of 200 bit binary numbe...

10 years ago | 1

| accepted

Answered
Can integer GA + lsqlin be used to solve an equation, when results provided by integer GA alone is not reliable?
This is NOT a linear equation. lsqlin requires linearity. But once you make it conditional on the value of z(1), it appears to b...

10 years ago | 1

Answered
Mahalanobis distance between two vectors?
help pdist

10 years ago | 0

Answered
Left Division least squares fitting, but with a given coefficient(/s)
Hmm. So it is not possible to do this? :) a02 = [ones(size(x)),x.^2]\(y - 3*x); Then you can reconstruct the desired coe...

10 years ago | 1

| accepted

Answered
combination of numbers that have a specific amount
This can be a LARGE set of possible sums. Classically, a partition of the number n is a decomposition into a sum of elements bel...

10 years ago | 0

Answered
Generate a Random Matrix Image(RMI) Values(0-10)
help randi

10 years ago | 0

Answered
Should there be a residual when applying principal component analysis?
If you used all of the components, and you STILl have a large residual, then you are doing the reconstruction incorrectly. The r...

10 years ago | 1

| accepted

Answered
problems with symbolic calculations
Simple problem. Simple to fix too. Look in this loop. t1 = zeros(1,d); for i=1:d t1(i) = n{i}.*L(i)./c; end ...

10 years ago | 11

| accepted

Answered
How can I multiply variables by a random variable with lognormal distribution?
If you are asking how to multiply a variable by a SAMPLED random variable, then the function lognrnd (stats TB) will do what you...

10 years ago | 0

Answered
How can I solve a polynomial system with 17 equation and 17 unknowns?
What are you doing wrong? You are trying to solve something that has been proven mathematically impossible to solve. You have...

10 years ago | 0

Answered
Variable overflow doesn't work
Underflows ARE allowed. Just not the kind of underflow you want to see. That is the behavior of an int8 variable. It underflo...

10 years ago | 0

Answered
Fast sparse matrix-vector multiplication?
As usual, people want huge operations to run in milliseconds, as if their computer was infinitely large and infinitely fast. No ...

10 years ago | 0

Answered
Hi, I am trying to write 100! in MatLab aka 1*2*3*4......*100. Could you please help me to find the correct spelling?
So you want to compute a factorial? Did you try lookfor factorial Or, even help factorial or doc factorial ...

10 years ago | 0

Answered
Find the function from a given table with 4 variables
You can do no more than linear for predictions, since you have 4 variables, and only 4 data points. It would probably be of the ...

10 years ago | 0

| accepted

Answered
Matrix inverse using Cholesky decomposition
If you have the Cholesky factor, then just use back substitution (twice), applied to an identity matrix. Actually, it will be a ...

10 years ago | 1

| accepted

Answered
Why does it give me a wrong answer when I want to find the absolute minumum of the function g(t)?
In general, optimizers are not capable of ensuring they have found a global optimum. If your function can be arbitrarily nasty, ...

10 years ago | 0

| accepted

Answered
why - if kk = num (where kk = 6.0000 and num = 6 ) gives me false
You THINK the number is 6.0000. But suppose that it was 6.00001, with only that limited number of decimal places reported. What ...

10 years ago | 1

Answered
made a code in matlab which includes functions like rand, eig, cov and many more. I want to convert the same to HDL, but cannot due to those functions.
10x10 is not a large problem. :) In fact, 10 is pretty small. That does not mean it is trivial for any general matrix, and the s...

10 years ago | 0

| accepted

Answered
Which is the right way of initialization of variables in this code?
Congratulations!!!!!! You are the 10 millionth person to learn about floating point numbers! First prize for having learned that...

10 years ago | 0

| accepted

Answered
Will the hardware support package support package for arduino support the ethernet shield 2 in the future?
Nobody can answer this question. It may be true there is someone who knows. If they do know the answer though, they will be lega...

10 years ago | 0

Answered
Increase hue of image
Increase the hue? Since hue is generally regarded as an angle in some polar coordinate system, increasing the hue would generall...

10 years ago | 0

Answered
Use crout method to find L and U, then use L and U to obtain a solution
(Again, use of length on an array is a dangerous thing, asking for buggy code in the future.) First, I would suggest testing ...

10 years ago | 0

Answered
Not calculated when using Subs function
Because that is not the exact number. simplify(v) ans = (14*3^(1/5)*10^(2/5))/5 I'm sure you can see that as soon ...

10 years ago | 0

Answered
Creating array from 1.e-20 to 1, with steps 1.e-19, 1.e-18..
As Peter points out, logspace is the way to do this. (In fact, I up-voted his answer.) In general, use existing tools where you ...

10 years ago | 0

Solved


Right and wrong
Given a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle: <http://en.wikipe...

10 years ago

Solved


Make a Palindrome Number
Some numbers like 323 are palindromes. Other numbers like 124 are not. But look what happens when we add that number to a revers...

10 years ago

Answered
Generate different radius size of particle from normal distribution and assign that radius to specific x-y coordinate
An array is just a list of numbers. They mean what you want them to mean. Anyway, I'm not sure why you want to use a vector to c...

10 years ago | 1

| accepted

Load more