Azzera filtri
Azzera filtri

How to make all the cells of equal size in matlab?

2 visualizzazioni (ultimi 30 giorni)
Sag
Sag il 13 Giu 2016
Risposto: Walter Roberson il 13 Giu 2016
Hi I have cells which are 1x2244 or 1x2245. How I can make all the cells in the array of equal size by cutting last element in arrays with 2245 elements in them?

Risposte (2)

Azzi Abdelmalek
Azzi Abdelmalek il 13 Giu 2016
A=A(1:2244)

Walter Roberson
Walter Roberson il 13 Giu 2016
NewCell = cellfun(@(C) C(1:2244), YourCell, 'Uniform', 0);

Categorie

Scopri di più su Data Types in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by