Quantcast
Channel: PTC Community : All Content - PTC Mathcad
Viewing all articles
Browse latest Browse all 3331

Avoid filterNaN error if there is no NaN

$
0
0

I have various data sets I'm performing some analysis on. Sometimes they have blanks, sometimes not.  I can easily filter out the blanks with filterNaN.  The problem is if there are no blanks the filterNaN errors out.  So, I have to rewrite the statements for each column as to whether I need to filter or not.  I'd like one command that works whether I have blanks or not. What are my options?  Here's a simple example:

filter.jpg

 

Here, I want to return B = [1 2 3 4 5]^T

 

Prime 3.1 (and is this a bug?)

 

Thanks,


Viewing all articles
Browse latest Browse all 3331

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>