|
From: | Doug Stewart |
Subject: | Re: Including NaNs in a data file? |
Date: | Wed, 5 Nov 2014 08:28:37 -0500 |
Thanks,Is there an easy way to store NaNs in an ascii file, and how then can that file be best read into Ocatve?the N's indicating questions not attempted. I can read this into Octave with "fileread", and I get a long string, which I can then fiddle with to turn into numeric values and NaNs. The function "dlmread" is more convenient, but converts all non-numeric data to zeros.I'm setting up a matrix of student marks; using NaNs for non-existent data: a question not attempted. I'd like to be able to store this as ascii text outside of Octave, with a row looking something like5 2 N 3 4 N N 3 6 4
Alasdair
_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave
[Prev in Thread] | Current Thread | [Next in Thread] |