12-Amethyst
December 7, 2022
Solved
program to parse table data from text file
- December 7, 2022
- 1 reply
- 2546 views
I have a text file with comma delimited numerical data. I read it in to the "ld" table and then have a program to parse through and build a matrix from the data (data file attached). My questions:
1) Can I replace the "11" in my for statement with something like "length of (ld)" so my code works when I change the number of rows of data?
2) Is there a way to build the Ypos matrix without using the intermediary Yp matrix? I know Ypos is only defined inside the program - but is there a way to make it "global" or such?
3) Is it possible to populate 2 different matrices with 1 program? So my code would create both a Yp and a second matrix? If my code creates a Ypos and Yneg how would I pass both of them out?

thanks,
relayman357




