Determining the number of rows in an excel sheet and storing it as value n in MATLAB
37 ビュー (過去 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?
0 件のコメント
回答 (2 件)
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);
0 件のコメント
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.
1 件のコメント
参考
カテゴリ
Help Center および File Exchange で Spreadsheets についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!