필터 지우기
필터 지우기

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 CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by