How to split an cell array of two numbers into two columns

7 ビュー (過去 30 日間)
Luca
Luca 2021 年 4 月 15 日
コメント済み: Luca 2021 年 4 月 15 日
Hi,
After running regress with splitapply(). I get a cell array where each row contains a cell with two numbers. I would like to split the number in to two columns.
Test = cellfun(@(cIn) strsplit(cIn,' ')',m5,'UniformOutput',false);
I tried strsplit but its not working, I guess because I have no strings.
Can somebody tell me how to do it?
I attach the cell array i want to split.
Thank you
Luca

採用された回答

Stephan
Stephan 2021 年 4 月 15 日
YouWant = [m5{:}]'
  1 件のコメント
Luca
Luca 2021 年 4 月 15 日
Thank you Stephan
It worked.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by