MATLAB Answers

how can i move cell components to new line

3 views (last 30 days)
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

  0 Comments

Sign in to comment.

Accepted Answer

madhan ravi
madhan ravi on 2 Jun 2020
a = cellfun(@transpose, a, 'un', 0)

  0 Comments

Sign in to comment.

More Answers (0)

Products


Release

R2013b