Filter löschen
Filter löschen

I want to extract all cell data inside

1 Ansicht (letzte 30 Tage)
Ali Nik
Ali Nik am 5 Mai 2023
Beantwortet: Mathieu NOE am 5 Mai 2023
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 Kommentare
Ali Nik
Ali Nik am 5 Mai 2023
I want to put all these characters in another cell
Ali Nik
Ali Nik am 5 Mai 2023
Is the question clear?

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Mathieu NOE
Mathieu NOE am 5 Mai 2023
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

Weitere Antworten (0)

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by