- 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.
- 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.
- 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.
- 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.
error in edfread - Expected input to be integer-valued.
13 views (last 30 days)
Show older comments
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?
0 Comments
Answers (1)
Shubham
on 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:
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.
0 Comments
See Also
Categories
Find more on Biomedical Signal Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!