[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Loading a matrix type file in load-save.cc
From: |
Cederik De Leon A |
Subject: |
Loading a matrix type file in load-save.cc |
Date: |
Sat, 21 Apr 2001 18:19:19 -0500 |
Hi list:
I am reading the CVS source and taking a look in the
octave/src/ load-save.cc file, i found the strict and rigid structure of
the ASCII DATA. (isn't new sorry i'm CRC :) ) So, could be possible make a
flex scanner for the data recognition in files; (i don't know really how fast
or slow will be)
I made a little "Matrix File Scanner" with comments and arbitraty comments
and arbitraty label position here is an example:
mtrx_file.dat
*************BEGIN of example****************
#This line is a comment By Me...
#How to fill the matrix file....
MTRXN=A
[
1 2 3
3 4 5
6 7 8
];
MTRXN=B
[
1 2
3 4
];
MTRXN=C
[
1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20
];
#This is other comment.... ;)
MTRXN=OctaveMatrix
[
1 4 7
2 5 8
3 6 9
];
**********END of example*********
Please, if my idea is so DUMMY don't answer and let it in the LIMBO
Best Regards from México, land of Tequila...
CD
----------------------------
EFM. Cederik León De León Acuña.
Director General
Linux OpenSource (mr)
Rayón #523 Centro
CP 58000
Morelia Michoacán MX
Tel/Fax: +52 4 3128724
Tel : +52 4 3173945
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Loading a matrix type file in load-save.cc,
Cederik De Leon A <=