Storing an unknown number of variables on disk individually
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Florian Rössing
el 29 de Sept. de 2021
Respondida: Steven Lord
el 29 de Sept. de 2021
Dear all, I am currently working on a signal generator that generates timeseries for input in simulink.
My proplem is, that I need a "long" signal with an order of 10^12 individual samplepoints. The signal has many components and I will need to store the underlying information needed for generation. This will not fit into my ram for simulation.
My current approach is to generate the signal in smaller chunks, that would fit into the RAM.
So I would generate a part of the signal and store it on disk, generate the next part, store it etc. How could I manage the storing efficiently? Like how do I name the signals/files, where I do not know how many chunks I will need to store?
Sorry if the question may seem trivial for vetarans here, but I have no experience with such resource intensive computations.
0 comentarios
Respuesta aceptada
Steven Lord
el 29 de Sept. de 2021
See if some of the tools and techniques described in the Large Files and Big Data chapter in the documentation will meet your needs. If you create the files in sequence then perhaps you could create a datastore and use that as the basis for a tall array on which you can perform your calculations. I suspect either a tabularTextDatastore or a spreadsheetDatastore may be appropriate.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Signal Processing Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!