|
||||||
| C and C++ C and C++ forum for discussing all forms of C except for C#. These languages are powerful low level languages used for creating Operating Systems, Device Drivers, compilers and much more. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
I'm analyzing data that I am extracting from simulations at periodic time steps and my data can only be extracted in the form of individual spreadsheets. Each spreadsheet has something like 83,000 rows and 7 columns of values. I have 12 different cases, each with about 100-150 spreadsheets. It would be a waste of time to do it manually.
So for one case I have a directory with text spreadsheets in them. There are 7 columns of data in each spreadsheet, all with tab delimiters. I want to average the values across all of the files. What i mean is I want the first value of the first column in all 100 files to be averaged together and so on Shouldn't be terribly hard. Open file store all data to matrix count=count+1 close file open next file add to existing matrix count=count+1 close file rinse and repeat until all files have been added. At the end, divide everything by count. the files are csv files but may be treated as txt files. they are named as follows: table5 table10 table15 table20 ..... ... .. . Any help would be greatly appreciated on this. |
| Sponsored Links |
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sudoku can be solved using SQL..Take a look! | roger | Database & Database Programming | 5 | 07-04-2006 02:20 PM |
| Xav | ........ | 1455.48 |
| MeTh0Dz|Reb0rn | ........ | 1089.45 |
| WingedPanther | ........ | 977.76 |
| marwex89 | ........ | 962.9 |
| John | ........ | 914.37 |
| morefood2001 | ........ | 911.18 |
| Brandon W | ........ | 823.79 |
| chili5 | ........ | 312.39 |
| Steve.L | ........ | 276.28 |
| dcs | ........ | 253.49 |
Goal: 100,000 Posts
Complete: 84%