Problem Reading EXCEL file . Can someone help me with this problem, recently it was fine reading the file but all of sudden it turn to this since i wanted to test again my program.

1 view (last 30 days)
Quantity of product you have bought today: 2
Warning: P-file D:\MATLAB\R2019a\toolbox\matlab\iofun\importdata.p is older than MATLAB file
D:\MATLAB\R2019a\toolbox\matlab\iofun\importdata.m.
D:\MATLAB\R2019a\toolbox\matlab\iofun\importdata.p may be obsolete and may need to be regenerated.
Type "help pcode" for information about generating P-files.
Undefined function 'xlsread' for input arguments of type 'char'.
Error in importdata
Error in importdata
Error in Untitled2 (line 71)
foodmenu=importdata('EXCEL(edited).xlsx');

Answers (1)

Maadhav Akula
Maadhav Akula on 24 Jan 2021
Hi Ahmed,
Looks like you have modified the importdata.m file, so you have to pcode the file again, if not please try reinstalling MATLAB so that the modified files are overwritten.
Check the following links:
Hope this helps!

Categories

Find more on Programming 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!