フィルターのクリア

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

2 ビュー (過去 30 日間)
Sag
Sag 2016 年 6 月 13 日
回答済み: Walter Roberson 2016 年 6 月 13 日
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?

回答 (2 件)

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 6 月 13 日

Walter Roberson
Walter Roberson 2016 年 6 月 13 日
NewCell = cellfun(@(C) C(1:2244), YourCell, 'Uniform', 0);

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by