I nead help, xlsread(file,-1).
Afficher commentaires plus anciens
from doc:
[num,txt,raw] = xlsread(filename,-1) opens an Excel window to interactively select data. Select the worksheet, drag and drop the mouse over the desired range, and click OK.
How can I save this selected area (ex ‘A3:AB187’ or other) to use as a variable.I wont read in the same area (ex ‘A3:AB187’ or other) with multiple files.
Thanks,
Jola
3 commentaires
Ahmed Elkady
le 1 Août 2012
%% Read Data from Excel Files
FileName = 'XFileName.xlsm';
SheetNo = 'Sheet1';
DataRange = 'T4..X259';
VariableName = xlsread (FileName, SheetNo, DataRange);
Jola P
le 1 Août 2012
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Spreadsheets dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!