how can i move cell components to new line

2 ビュー (過去 30 日間)
Sajid Afaque
Sajid Afaque 2020 年 6 月 2 日
回答済み: madhan ravi 2020 年 6 月 2 日
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 Center および File ExchangeScope 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