フィルターのクリア

I want to extract all cell data inside

1 回表示 (過去 30 日間)
Ali Nik
Ali Nik 2023 年 5 月 5 日
回答済み: Mathieu NOE 2023 年 5 月 5 日
Hi I want to extract all cell data inside matlab0 file, that is {b,q,s,r,n,p,t,o,w} I used the flatten function, but it extracts four data. Thank you for your help. Of course, if there is another solution, please let me know. Thank you
  3 件のコメント
Ali Nik
Ali Nik 2023 年 5 月 5 日
I want to put all these characters in another cell
Ali Nik
Ali Nik 2023 年 5 月 5 日
Is the question clear?

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

採用された回答

Mathieu NOE
Mathieu NOE 2023 年 5 月 5 日
hello
maybe this ?
result :
out = 1×9 cell array
{'o'} {'w'} {'t'} {'p'} {'n'} {'r'} {'b'} {'q'} {'s'}
out = nn;
while any(cellfun(@iscell,out))
out = [out{cellfun(@iscell,out)} out(~cellfun(@iscell,out))];
end

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by