Answered
How I can use perms_reps(vec,reps) function with big vectors
"YOUR" perms_reps function? Who are you talking to? This is not part of MATLAB, so must we guess? And then of course, we need to...

10 years ago | 0

Answered
Repeated Permutation of the same numbers
Surely this is no harder than creating a new vector, that has the numbers repeated as often as you wish, then randomly permuting...

10 years ago | 2

Answered
fmincon with 3 input variables
You passed in a vector of initial guess. But then somehow, you expect fmincon to magically know how to interpret and split that ...

10 years ago | 1

| accepted

Answered
nanmin.m % Has no license available
This is apparently a site with multiple licenses, but not enough for how many MATLAB users. But you cannot use a license from...

10 years ago | 0

Answered
Question 1: Where is the definition for BitToInteger? Question 2: Several years ago Matlab had the best help keyword search I had ever seen. Know is doesn't work at all. What happened?
WTP? Took 3 seconds. Most of which was me typing. https://www.mathworks.com/help/comm/ref/comm.bittointeger-class.html

10 years ago | 0

Answered
Array that contains a geometric series
2.^(0:6)

10 years ago | 2

Answered
Numerical sensitivity of function kron(X,Y)
Never trust the LSBs in a floating point computation. If it can go bad, it probably will. A = randn(200); B = randn(100)...

10 years ago | 2

Answered
solving symbolic equations and getting parametric answers
Almost certainly impossible. A quite complicated nonlinear equation, with symbolic parameters. Without even trying to figure out...

10 years ago | 0

Answered
ratio between variables in equation
Well, you might want to do that, but if both w and d are unknowns, then even if you do it with pencil and paper, you won't succe...

10 years ago | 0

Answered
i need to reshape rows that are in complicated manner!
Easy. A = reshape(A',10,4); A = 1 1 1 1 3 3 3 3 5 5 5 5 7 ...

10 years ago | 0

Answered
where can I find the source code of function in Matlab2016b?
Many functions are provided as m-files. You can view an m-file by using the type function at the command line. Thus type pc...

10 years ago | 0

Answered
toy example in pattern recognition
"Toy example" means you must generate some sample random data of your own, then try to model it. A "toy" is something that yo...

10 years ago | 0

Answered
Help regarding 2 body planetary simulation
First of all, why do you need global variables? You are not calling anything anyway! Learn to pass variables in as arguments ...

10 years ago | 1

| accepted

Answered
Does MATLAB use all cores by default when running a program?
MATLAB uses multiple cores only when there will be a gain. The problem is that multi-threading itself has overhead. So on simple...

10 years ago | 2

Answered
Computing the convolution of the difference between random variables
Too late probably for you to see this, but... There is no way to compute the analytical pdf of the difference of the pair of ...

10 years ago | 0

Answered
How to use kroneckerdelta in programming
You are doing this: kroneckerDelta(2,3) Undefined function 'kroneckerDelta' for input arguments of type 'double'. As...

10 years ago | 0

Answered
how to find intersection between 3 functions?
Easier than you think. First of all, if your goal is to plot three surfaces with different colors on each, then use handle gr...

10 years ago | 0

Answered
matrix multiplication using bsxfun(@times,a,b)
Neither of those matrices is either 6x7 or 7x3, so your question is nonsense as written. Perhaps your intention is that these...

10 years ago | 0

Answered
How can I have a warning issued when matlab "rounds" a large number to Inf?
You cannot set a warning whenever an inf of NaN is created. You can set the debugger to intercept this event, but that would mak...

10 years ago | 1

Answered
delete points too close to another
This is not always a trivial problem to solve, and it gets worse in multiple dimensions. One option is to use my <http://www.mat...

10 years ago | 0

Answered
How to get an equation of a line/curve from a data set(Matrix) with two variables?
This is a not uncommon question. You have some curve, and you want to find the function that represents it. Here you have a huge...

10 years ago | 1

| accepted

Answered
error while calculating a matrix determinant
1. NEVER use the matrix determinant for any computation to determine the rank of a matrix. (Use rank or cond for that.) 1a. N...

10 years ago | 0

| accepted

Answered
How do i force lsqcurvefit to overfit data?
No. You misunderstand the concept of overfitting. You cannot stamp your feet and insist that lsqcurvefit try harder. Overfitting...

10 years ago | 1

Answered
Rewrite the equation in new form: from y = f(k) to k = g(y)
In general, you cannot do so. This is what solve does (for the symbolic TB), but it is severely limited, as must be any such too...

10 years ago | 0

| accepted

Answered
Hod do I use Image projections in specific computations
Counting the number of peaks, and using that to infer written language seems a very broad brush to apply to the problem. As well...

10 years ago | 0

| accepted

Answered
How to find the vector coefficients given the equation X + N*V > 0
Without seeing what your matrices are, it is difficult to help you too much. How do you know what the "right" V is? Yes, you ...

10 years ago | 0

Answered
I want to multiply 2 arrays
Oh. That is not the product of those numbers? Seems right to me, as long as you don't miss that factor of 1e4 out front. What...

10 years ago | 0

Answered
Fitting a log-normal distribution
Your problem is a not uncommon one for people who don't understand random distributions. The fact is, you don't have data as...

10 years ago | 1

| accepted

Answered
how to do the sparse indexing
Hmm. You created A as sparse, and all zero. Then you index into A1, which appears to be undefined. I'll assume that you simply c...

10 years ago | 0

Answered
Is it possible to use 20 variables in a multi regression on MATLAB?
Of course it is possible. In fact, 20 can be a rather small number in some cases, OR wildly too many. It does depend on how m...

10 years ago | 0

Load more