how can i move cell components to new line

2 次查看(过去 30 天)
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

采纳的回答

madhan ravi
madhan ravi 2020-6-2
a = cellfun(@transpose, a, 'un', 0)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Scope Variables and Generate Names 的更多信息

标签

产品


版本

R2013b

Community Treasure Hunt

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

Start Hunting!

Translated by