フィルターのクリア

What is the fastest way to convert mat to cell for the following algorithm?

2 ビュー (過去 30 日間)
Jab
Jab 2016 年 8 月 8 日
回答済み: Walter Roberson 2016 年 8 月 8 日
I have a matrix of 256*256*57 3D matrix. I wanted to convert to cell of 1X5 and the first cell should contain 256*256 matrix, 2nd and 3rd cell should contain 256*256*10 , 3rd and 4th cell should contain 256*256*18. Could anyone please help me?
Thanks

採用された回答

Walter Roberson
Walter Roberson 2016 年 8 月 8 日
output = mat2cell(YourMatrix, size(YourMatrix,1), size(YourMatrix,2), [1, 10, 10, 18, 18]);

その他の回答 (1 件)

dpb
dpb 2016 年 8 月 8 日
Probably mat2cell altho I've not timed alternatives...
c=mat2cell(a,256,256,[1 10 10 18 18]);

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by