How to get a timetable and not a 1x1 struct?

3 ビュー (過去 30 日間)
Lisa Suette
Lisa Suette 2021 年 5 月 26 日
コメント済み: Walter Roberson 2021 年 5 月 26 日
Hello,
I have the newest version of Matlab2021a and I also downloaded the edfread-app as an additional app.
To plot my EEG data i need edfread to extract a timetable but somehow I always get a 1x1 struct no matter what I do. I tried the exact same code as described here but I just don't get the timetable.. What could be the reason?
Thank you very much!

回答 (1 件)

Walter Roberson
Walter Roberson 2021 年 5 月 26 日
I suspect you downloaded the FEX contribution edfread() https://www.mathworks.com/matlabcentral/fileexchange/31900-edfread which returns a struct.
When what you want instead is the Signal Processing Toolbox function edfread() https://www.mathworks.com/help/signal/ref/edfread.html which returns a timetable.
  2 件のコメント
Lisa Suette
Lisa Suette 2021 年 5 月 26 日
Thank you for the answer but I checked and I had the right one so this unfortunately can't be the reason. Is there maybe any other reason for that?
Walter Roberson
Walter Roberson 2021 年 5 月 26 日
No, I just looked at the code for the Signal Processing Toolbox edfread() function. There is literally no way for it to return a struct insted of a timetable.
Put a breakpoint in your code at the call to edfread(), and run to there, and then use the debugger "step in" function and see where you end up.

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

カテゴリ

Help Center および File ExchangeEEG/MEG/ECoG についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by