How to reshape a cell array ?
古いコメントを表示
Hi , I have a this cells :

I want to reshape them , I want each cell include a 95*1 cells which all 95 data are the same value we have for the cell before reshaping. for example look at row 27 . the value is 5.9410 . I want it to be a 95*1 cell which all of the rows has the value of 5.9410. (pls forget about row 28 and assume that in each row we have a single value)
3 件のコメント
Jos (10584)
2018 年 9 月 24 日
This is a little confusing. Can you give a very small example of the input and expected output?
Baran Mehrdad
2018 年 9 月 24 日
Adam Danz
2018 年 9 月 24 日
The two answers below should achieve this.
採用された回答
その他の回答 (1 件)
cellfun( @(x) x + zeros( 95, 1 ), ESS_estimated_schedule, 'UniformOutput', false );
It seems like rather large replication of redundant data, but that line should do it for you.
カテゴリ
ヘルプ センター および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


