I have {1*1} cell which contains a column matrix with 4455 rows how can i access data in each row?

3 vues (au cours des 30 derniers jours)
I have {1*1} cell which contains a column matrix with 4455 rows how can i access data in each row?

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 21 Mai 2013
Modifié(e) : Azzi Abdelmalek le 21 Mai 2013
A{1}{k}
Example
A={{10 20 30 40}}
A{1}{3} % The result is 30
  2 commentaires
Jan
Jan le 21 Mai 2013
The OP has a matrix insie the cell. Then he needs round parenthesis as second indexing:
A = {rand(4455, 1)};
v = A{1}(256)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by