Strategy on how to save data from multiple runs of an experiment where variables changes
Afficher commentaires plus anciens
I need some guidance on the best way to structure and save data from experiments with many runs and chaning variables.
An example:
Let's say that I try to measure the light intesity from an LED after the light has passed an optical filter. I will do many experiments and change between different combinations of LEDs, filters and detectors, all with a traceable serial number. At every experiment i step the LED current between 0 and 100% in suitable steps and make 1000 samples at every current level so that I can analyze noise and drift at every level. Some combinantions of LED, filter and detector will be run several times. Every experiment that I perform will produce a text-file with the measured data inside.
How should I handle this data so that I easilly can make statistics from it in MATLAB?
Should I save everthing in tables, a large cell array or keep it in the text files? How do I map the LED, filter and detector ID:s to the data?
I would for example like to be able to easilly plot the STDEV of all LED:s with filter F3 and Detector D2 at a certain LED current. Or any other combination of equipment.
Any thoughts on how to save the data and keep mapping to the physical equipment would be much appreciated.
1 commentaire
Use one table to conduct the statistical analyses.
That does not mean that all intermediate results and whatnot need to be stored there, but using one table has many benefits for the kind of processing that you seem to want to do:
- store (and use) numeric data as numeric, text data as text (or categorical), etc. This is much tricker with other container types like cell arrays.
- easily find groups based on one or more conditions, then apply functions or operations to those groups (e.g. exactly like your "plot the STDEV of all LED:s with filter F3 and Detector D2 at a certain LED current" example).
- can trivially include meta-data, eg. filenames, timestamps, or any other test parameters.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Data Import and Export dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!