I am using the Frequency Response Function VI to produce a frequency response based on a broadband noise input X and a response signal Y. I want to use the coherence output (cf) to mask the data (A) and reject 'bad' data.
In matlab this would be something like the following:
mask = (cf > threshold);
badlocations = find(mask == 0);
A(badlocations) = NaN;
This would replace all the data in A with NaN when the coherence function cf is greater than some threshold.
I have no clue how to do this in Labview!! (Although could just use a mathscript node). Help?
Dave