Effacer les filtres
Effacer les filtres

Erase row from a cell-array

2 vues (au cours des 30 derniers jours)
Maria
Maria le 27 Juil 2014
Commenté : Image Analyst le 27 Juil 2014
I have the following cell variable with 10000 rows:
A={ 'x' 'start1' 'end1'
12 1997 2000
13 1997 1999
16 1997 2002 }
And I would like to delete the first row. I tried the following code:
A(cell2mat(A(1,:)))=[];
but it returns the values all in one row, instead of the way theu were originally disposed.
Cna someone help me? Thanks
  1 commentaire
Image Analyst
Image Analyst le 27 Juil 2014
You might not have had to ask if you were more knowledgeable about cell arrays. Please read the FAQ http://matlab.wikia.com/wiki/FAQ#What_is_a_cell_array.3F I think it might give you a better intuitive feel for what cells are and how to reference them. If you understood this, you might not have tried that cell2mat stuff, and would have know to do Azzi's answer.

Connectez-vous pour commenter.

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 27 Juil 2014

Plus de réponses (0)

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