move cells (contained within a cell) to coordinates other than the starting coordinates
2 ビュー (過去 30 日間)
古いコメントを表示
Hi. I have a cell 'matrix_complete' and a coordinate matrix 'coord'.
I need to transform 'matrix_complete' so that:
- the first row (3x3 cells) of 'matrix_complete' is positioned at coordinates [4,1] (first row of 'coord')
- the first row (2x3 cells) of 'matrix_complete' is positioned at coordinates [2,2] (second row of 'coord')
2 件のコメント
採用された回答
Voss
2023 年 7 月 25 日
load matrix_complete
load coord
siz = max(check_1_valori_0,[],1);
matrice_completa_new = cell(siz);
for ii = 1:numel(matrice_completa)
matrice_completa_new(check_1_valori_0(ii,1),check_1_valori_0(ii,2)) = matrice_completa(ii);
end
disp(matrice_completa_new);
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!