필터 지우기
필터 지우기

Reading data from excel

조회 수: 2 (최근 30일)
John Rebbner
John Rebbner 2018년 11월 13일
답변: Fangjun Jiang 2018년 11월 13일
Hello, guys! I'm trying to write a code which reads data from a spesific column in excel. I am using xlsread comand in matlab code.
1.jpg
My goal is to write a code wchich reads from the first column. The logic of the program si to check if the cell of the column A is equal to 1, if this statement is met, then take the name from the column B and do it till the first empty cell from the first column.
My question is: How can I say to Matlab (xlsread fun ) to start reading from a sertain cell, and to stop when the code meets the first empty cell of the column???

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2018년 11월 13일
I would suggest reading the whole Excel sheet and then process the data in MATLAB according to your logic. xlsread() is more time comsuming than most of the MATLAB functions. Unless your Excel sheet contains huge data, it never pays to read the Excel sheet twice using xlsread().

카테고리

Help CenterFile Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

제품


릴리스

R2015a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by