How to: Raise Cell array

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일

0 개 추천

[n,m]=size(num);
txt(end+1:n,:)={''}
Hello kity
Hello kity 2013년 1월 29일

0 개 추천

newtxt=txt(3:end,1)
found answer :)
i look to your answer too

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

질문:

2013년 1월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by