How to combine cells into a single cell?

4 vues (au cours des 30 derniers jours)
Sim
Sim le 21 Mai 2024
Commenté : Voss le 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.

Réponse acceptée

Voss
Voss le 21 Mai 2024
  4 commentaires
Sim
Sim le 21 Mai 2024
thanks!
Voss
Voss le 21 Mai 2024
You're welcome!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by