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

3 ビュー (過去 30 日間)
Gerrit
Gerrit 2020 年 1 月 22 日
コメント済み: Gerrit 2020 年 1 月 23 日
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 件のコメント
Guillaume
Guillaume 2020 年 1 月 23 日
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 2020 年 1 月 23 日
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

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by