Hello,
I'm looking to read double precision data from a file, in however many columns it is, and to the end of file. The result should be a N x M double.
i.e. if I paste this in the Matlab window, I get what I need:
table=[1016.6 0 0 0 0 0 0 01016.6 0 0 0 0 0 0 00 -479.528 0 0 0 0 0 00 468.718 0 0 0 0 0 00 0 -385.346 0 0 0 0 00 0 696.118 0 0 0 0 00 0 0 -7591 0 0 0 00 0 0 7591 0 0 0 00 0 0 0 -7573.16 0 0 00 0 0 0 7573.16 0 0 00 0 0 0 0 -2620.704 0 00 0 0 0 0 4134 0 00 0 0 0 0 0 0 00 0 0 0 0 0 1022.074 00 0 0 0 0 0 0 00 0 0 0 0 0 0 7701.638];That gives a 16x8 double.But in the file would be just the values, as shown.
Some form of fscan maybe, but with generalized format?
Thanks for unconfusing me…
Dave
Best Answer