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

11 vues (au cours des 30 derniers jours)
Luisa de Vivo
Luisa de Vivo le 20 Jan 2023
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?

Réponses (1)

Shubham
Shubham le 8 Mar 2023
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.

Catégories

En savoir plus sur EEG/MEG/ECoG dans Help Center et File Exchange

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by