Reading specific Cell in Excel
Mostrar comentarios más antiguos
I am trying to read a certain cell in Excel with matlab.(B2)
I am then going to use this in an if statement.
Please advise
Respuestas (3)
Example:
filename='hello.xls' #Name of file
x=xlsread(filename, 'B2')
Lotus Kannan
el 14 de Mzo. de 2017
0 votos
%% x only reads B column values from the excel
filename='example.xlsx';
x = xlsread(filename,'B:B');
1 comentario
Gamal Zayed
el 11 de Mayo de 2020
Thanks
Shirin Mozaffari
el 18 de Jul. de 2018
0 votos
for example you wanna read cell A2. This is what you should do: cell = xlsread(fileName,'A2:A2')
2 comentarios
Jesus Leal
el 13 de Mzo. de 2022
what if i wanted to recall a cell and every 6th cell after that
NAFTALI HERSCOVICI
el 29 de Mayo de 2022
Is there any way to use the cell indices rather than letters to specify columns?
Like in excel the range can be defined as Range(cells(2,1),cells(2,1)) instead of Range("a2:a2")
Categorías
Más información sobre Spreadsheets en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!