Suppose I have a matrix that contains NaN entries. I want to find the the standard deviation of all entries in the range (r1:r2,c1:c2) and omit NaN entries. Is there a way to do this without extracting data range first and storing it as a new entry?
I Want to avoid this
And instead do something like this:
Unfortunately, this only gives me the std of this range based on whatever dim I specifiy. I want to get the std of all elements in this range with one line of code.