How to combine cells into a single cell?

4 views (last 30 days)
Sim
Sim on 21 May 2024
Commented: Voss on 21 May 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.

Accepted Answer

Voss
Voss on 21 May 2024
  4 Comments

Sign in to comment.

More Answers (0)

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!