필터 지우기
필터 지우기

Determining the number of rows in an excel sheet and storing it as value n in MATLAB

조회 수: 36 (최근 30일)
I have an excel sheet named test.xlsx with two columns. I want to figure out the number of rows (not columns) and store that value in n...how to write such a code in MATLAB?

답변 (2개)

Tanmoy Mohapatra
Tanmoy Mohapatra 2019년 4월 1일
편집: Tanmoy Mohapatra 2019년 4월 1일
When you read an excel, it is stored as matrix. knowing dimension of that matrixs will do the work.
[NUM,TXT,RAW]= xlsread('path of your test.xlsx');
[NoOfRows,NoOfColumn]= size(TXT);

pranati pradhan
pranati pradhan 2019년 11월 23일
How to calculate how many rows are having numeric values and how many rows are empty in a particular cell of an excel sheet.I have to consider only one column of an excel sheet and find how many rows of that column are having numeric values.Please help me with this.

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by