Effacer les filtres
Effacer les filtres

A small problem about the Cell Array.

2 vues (au cours des 30 derniers jours)
Donghui  Sun
Donghui Sun le 25 Août 2013
I am a newbie for the cell array in Matlab programming.I need a cell array, for example C, with the five elements,a,b,..,e. Each element is a matrix, and may be in different size.
How to program to implement this issue?

Réponse acceptée

Image Analyst
Image Analyst le 25 Août 2013
The FAQ may help: http://matlab.wikia.com/wiki/FAQ?&cb=8212#What_is_a_cell_array.3F. I think it gives a good intuitive explanation of how they work.

Plus de réponses (1)

Azzi Abdelmalek
Azzi Abdelmalek le 25 Août 2013
a=2;
b=[2 5];
c=[2 4;4 5];
A={a,b,c}
  1 commentaire
Donghui  Sun
Donghui Sun le 26 Août 2013
Thanks! It works.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Resizing and Reshaping Matrices 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