how can i move cell components to new line

2 vues (au cours des 30 derniers jours)
Sajid Afaque
Sajid Afaque le 2 Juin 2020
hello All,
i have a cell array where each row looks like
a{5} = 'temp=25' 'vds=12' 'id=60' 'vbchmax=14'
now i want to make all this component one below other like
a{5} = 'temp=25'
'vds=12'
'id=60'
'vbchmax=14'
i tried using sprintf but no success, as sprintf is not applicable for cells i guess
sprintf('%s\n %s\n %s\n %s\n 'a{5})
please guide me,
Thanks in Advance

Réponse acceptée

madhan ravi
madhan ravi le 2 Juin 2020
a = cellfun(@transpose, a, 'un', 0)

Plus de réponses (0)

Catégories

En savoir plus sur Scope Variables and Generate Names dans Help Center et File Exchange

Produits


Version

R2013b

Community Treasure Hunt

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

Start Hunting!

Translated by