MATLAB: My code keeps telling me with an error “Index Exceeds Array Bounds” HELP PLEASE
algorithm
please help me to solve the error;
(i attached the file)
Best Answer
At line 54:
You cannot read a .xlsx file properly viafopen. Usexlsread instead.
You should define "Path" variable as directory path, and "File" variable as the file. Currently, ASDPath is the user.xlsx, which is a file.
Use the full path to a file, and not just the relative path to current working directory.fullfile(ASDPath, ASDFile), where "ASDPath" should be the "path" todirectory, and "ASDFile" should be the "file" ending with .xlsx
Add an error check after thefopen to help with debug
ASDPath = 'C:\User\Desktop\....\'; %PATH to your file
Best Answer