How to combine cells into a single cell?

1 回表示 (過去 30 日間)
Sim
Sim 2024 年 5 月 21 日
コメント済み: Voss 2024 年 5 月 21 日
How to pass from "a" to "b", here following?
a = [{'[1,2)'}, {'[2,6)'},{'[6,11)'}]; % input
b = {'[1,2)','[2,6)','[6,11)'}; % desired output
I tried cat, but, it does not work:
b = cat(1,a{:})
Error using cat
Dimensions of arrays being concatenated are not consistent.

採用された回答

Voss
Voss 2024 年 5 月 21 日
  4 件のコメント
Sim
Sim 2024 年 5 月 21 日
thanks!
Voss
Voss 2024 年 5 月 21 日
You're welcome!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by