error in edfread - Expected input to be integer-valued.

10 ビュー (過去 30 日間)
Luisa de Vivo
Luisa de Vivo 2023 年 1 月 20 日
回答済み: Shubham 2023 年 3 月 8 日
Hi,
I have created an edf file but when I try to read it, I get this error message:
Error using edfread
Expected input to be integer-valued.
Error in signal.internal.edf.validateEDF (line 43)
validateattributes(numSamples, {'numeric'}, {'integer'}, mfile);
Error in edfread (line 113)
signal.internal.edf.validateEDF(filename, fileInfo, version, startDate, startTime,...
Can anybody help please?

回答 (1 件)

Shubham
Shubham 2023 年 3 月 8 日
Hi Luisa,
The error message you are receiving suggests that the edfread function is expecting an integer value as input, but it is not receiving one. This could be due to a variety of reasons, including incorrect formatting or missing data in the file you are trying to read. Here are a few steps you can take to try to resolve the issue:
  1. Check the file format: Make sure that the edf file you are trying to read is in the correct format. EDF files have specific requirements for formatting and data content, so it is important to ensure that your file meets these requirements.
  2. Check for missing data: Make sure that the edf file you are trying to read contains all the necessary data. If any data is missing or corrupted, it could cause the function to fail.
  3. Check for errors in the input arguments: Double check that all the input arguments you are passing to the edfread function are correct and in the expected format.
  4. Try a different version of the function: If none of the above steps work, try using a different version of the edfread function. There may be compatibility issues with your current version of the function and the edf file you are trying to read.
If you are still having issues, please provide more information about the edf file and the specific code you are using to read it so that I can help you better.

カテゴリ

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

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by