How to: Raise Cell array

1 vue (au cours des 30 derniers jours)
Hello kity
Hello kity le 29 Jan 2013
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?

Réponses (2)

Azzi Abdelmalek
Azzi Abdelmalek le 29 Jan 2013
Modifié(e) : Azzi Abdelmalek le 29 Jan 2013
[n,m]=size(num);
txt(end+1:n,:)={''}

Hello kity
Hello kity le 29 Jan 2013
newtxt=txt(3:end,1)
found answer :)
i look to your answer too
  1 commentaire
Azzi Abdelmalek
Azzi Abdelmalek le 29 Jan 2013
Look at edited answer

Connectez-vous pour commenter.

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by