Skip to main content
LucMeekesAnswer
23-Emerald IV
October 19, 2020

Something like this:

LucMeekes_0-1603127060250.png

Success!
Luc

7 replies

16-Pearl
October 19, 2020

If your files are sequential in their name - "data_1.dat", "data_2.dat", etc., you can write a program loop that will read the data from each file and place them all in a matrix. This approach worked very well for me.

 

Hope this helps!

Translate
mzarrabi1-VisitorAuthor
1-Visitor
October 19, 2020

Hi @ChrisKaswer. Thank you for your reply. Do you have a template to share?

Translate
LucMeekes23-Emerald IVAnswer
23-Emerald IV
October 19, 2020

Something like this:

LucMeekes_0-1603127060250.png

Success!
Luc

Translate
16-Pearl
October 19, 2020

Yes - what Luc has shared is very similar to what I have implemented. You can get a bit more complicated by monitoring the size of any data file and reading files that have different row and column counts. Units can be read-in as well with some other tricks (of course the data needs to be set-up to accommodate this), but Luc has captured the fundamental approach well.

 

Good luck!

Translate