squeeze function returning "NaN"
1 view (last 30 days)
I'm trying to run a correlation between a 8, 8, 33 matrix (FC_mat) and a 33, 1 matrix, therefore, I'm trying to use the 'squeeze' function on the 8, 8, 33 matrix:
"FC_mat_squeeze=squeeze(input1);" is returning a 33, 1 matrix of all "NaN". There are NaN values along the diagonal of the "FC_mat" matrix.
I appreciate any insight any of y'all might have on getting the squeeze function to ignore the NaN's in the input.