Borrar filtros
Borrar filtros

Faster way of loading data than loading mat file with array? / Faster way than logical indexing or find?

9 visualizaciones (últimos 30 días)
Hello everybody,
I need to load a really big amount of data into matlab. I could speed it up by moving from a table to an array and by using v6 to save it. But still it takes almost 50% of the time of the program. Is there an even faster method?
After that, I need to find certain values in this array. This takes about 40% of the time. Is there a faster emthod than logical indexing?
  13 comentarios
Guillaume
Guillaume el 23 de En. de 2020
If the data is saved in a mat file, fread won't help (unless you're planning to write your own mat file parser).
Gerrit
Gerrit el 23 de En. de 2020
Yeah, I just tested that. I think, the way I have it, is the best way to do it. Now I try to focus on vectorizing my loops.
If you want, you can take a look at my question. Link: https://de.mathworks.com/matlabcentral/answers/501586-can-i-vectorize-one-of-the-loops

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Logical en Help Center y File Exchange.

Productos


Versión

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by