フィルターのクリア

How to: Raise Cell array

2 ビュー (過去 30 日間)
Hello kity
Hello kity 2013 年 1 月 29 日
I use xlsread to read an excel file
[num txt]= xlsread(xxx);
num and txt arent alligned so I need to raise txt cell array 3 rows to have the same rows/indices with num.
how can i do this?

回答 (2 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 1 月 29 日
編集済み: Azzi Abdelmalek 2013 年 1 月 29 日
[n,m]=size(num);
txt(end+1:n,:)={''}

Hello kity
Hello kity 2013 年 1 月 29 日
newtxt=txt(3:end,1)
found answer :)
i look to your answer too
  1 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 1 月 29 日
Look at edited answer

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by