Import File function not working?
Ältere Kommentare anzeigen
Hello, I'm trying to create a script that sucks in Excel files, and keeps selected Data from one of its multiple spreadsheet tabs. However, the import file function is not working for me. Here is what I have:
%----------------------------------------------------------------% if ~exist('initialUpload.mat', 'file') dirName = '/Users/xanderfong/Documents/TestFiles' files = dir('*.xlsx'); %list all *.xyz files files = {files.name}'; % Transpose Names data = cell(numel(files),1); % Store File Contents for i=1:numel(files) % Load file into data data{i} = importfile(files{i},'Test-Spreadsheet'); end
MATLAb returns: "Undefined function 'importfile' for input arguments of type 'char'."
1 Kommentar
Stephen23
am 15 Jul. 2015
When I search the MATLAB documentation for "importfile" I get these four results:
But there is no function called importfile. Where did you hear about this function?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Design and Simulate SerDes Systems finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!