如何合并元胞数组。
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
果博东方注册《80877.tv》
le 24 Mai 2023
Réponse apportée : 推荐可以玩百家乐的网址【微8785092】
le 24 Mai 2023
现有一个3*3元胞,A= {{1},{2},{3};{4},{5},{6};{7},{8},{9}}; 如何让其变成 B = {{1;2;3};{4;5;6};{7;8;9}}?
0 commentaires
Réponse acceptée
推荐可以玩百家乐的网址【微8785092】
le 24 Mai 2023
B=mat2cell(cellfun(@(x) cell2mat(x),A'),3,[1 1 1])
0 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!