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

Image Analyst
Image Analyst 2023년 5월 5일
What do you want to extract it into? What kind of other variable?
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일

0 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Data Type Conversion에 대해 자세히 알아보기

질문:

2023년 5월 5일

답변:

2023년 5월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by