Community Profile

# njj1

### National Institute of Standards and Technology

16 total contributions since 2016

View details...

Contributions in
View by

Warning: Matrix is singular to working precision. how to solve?
There are ways of getting around a singular matrix, but they are a little ad hoc. have you tried QR decomposition ([Q,R] = qr(A)...

1 day ago | 0

Shading between two curves
You can try using the "fill" function (could also use "patch"). Just off the top of my head, if you can compute the area between...

5 days ago | 0

Submitted

Minimum entropy deconvolution
This function develops a minimum entropy deconvolution filter for a sequence x

8 days ago | 7 downloads |

How to compare the values of 2 arrays vs each other?
What do you mean by "similar"? If you want simply see the number of entries that are the same, then this could do the trick: ...

9 days ago | 0

| accepted

How to keep an element fixed until it fits a condition?
Can you clean up the code a little? It's not clear where the loops begin and end... A couple more questions/comments. 1) How...

9 days ago | 0

I would like to know if my function is correct
You actually need not go through the whole for loop to do this. First off, I assume the number of entries in x is equal to the n...

9 days ago | 0

How to see how a dataset changes over time with PCA.
It's hard to know exactly what you are hoping to achieve here. When using pca(x) in Matlab, we are assuming that "rows of X corr...

9 days ago | 0

Question

AR prediction leads fitted data
I am using aryule to construct a predictive AR filter. After I filter the data, the predicted values "lead" the actual data by o...

9 days ago | 0 answers | 0

### 0

Submitted

sanc(x,L,mu,delta)
Self Adaptive Noise Cancellation

11 days ago | 10 downloads |

Question

What is the difference between filter and conv?
I am trying to design a predictive AR filter using aryule. The code looks like this: h = aryule(signal,order); est_signa...

11 days ago | 2 answers | 0

### 2

Why is my loop only running 217 times when I expect it to run 649 times? See the script below
In your second script you assign the counter variable 'p' to be a single value, length(m(1,:)), which is simply 649. So Matlab c...

7 months ago | 0

How to solve the double summation of the given expression
A blunt force method would be to have two for loops, one nested in the other. In the inner for loop, sum over the 'i' variables,...

7 months ago | 0

Question

Matlab gradient does not follow exact numerical formula
When the numerical gradient is computed, Matlab uses forward differences for the end points, and uses central differences for t...

7 months ago | 1 answer | 0

### 1

How does MATLAB compute the covariance of a complex array?
So I answered my own question almost a minute after asking it. Turns out the transpose command, ', is actually the conjugate tra...

7 months ago | 0

Question

How does MATLAB compute the covariance of a complex array?
I'm working with a complex array and looking at the covariance matrix and the relation matrix. (The explanation of these matrice...

7 months ago | 1 answer | 0