How to combine cells into a single cell?

4 Ansichten (letzte 30 Tage)
Sim
Sim am 21 Mai 2024
Kommentiert: Voss am 21 Mai 2024
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.

Akzeptierte Antwort

Voss
Voss am 21 Mai 2024
  4 Kommentare
Sim
Sim am 21 Mai 2024
thanks!
Voss
Voss am 21 Mai 2024
You're welcome!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Operators and Elementary Operations finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by