load_xls_file_data: under Octave, fail gracefully if io is not present

time-shift
Sébastien Villemot 2013-11-26 18:15:11 +01:00
parent 93416a93da
commit 36ec2561bf
1 changed files with 3 additions and 0 deletions

View File

@ -61,6 +61,9 @@ if ~(check_file_extension(file,'xls') || check_file_extension(file,'xlsx'))
end
% load excel file.
if isoctave && ~user_has_octave_forge_package('io')
error('The io package is required to read XLS/XLSX files from Octave')
end
[num,txt,raw] = xlsread(file, sheet, range);
% Get dimensions of num, txt and raw