Cell Array to output like this?
7 ビュー (過去 30 日間)
古いコメントを表示
A = 14×1 cell array
{'0.1' }
{'0.2' }
{'1' }
{'1.1' }
{'1.2.3' }
{'1.2.3.1'}
output i want like this
A =
0.1
0.2
1
1.1
1.2.3
1.2.3.1
2 件のコメント
Rik
2021 年 8 月 11 日
What is flagging your own question going to achieve? You can post comments and even edit your question to clarify it.
採用された回答
the cyclist
2021 年 8 月 11 日
Here is one way:
A = {'0.2','1'}
output = cellfun(@str2num,A)
8 件のコメント
Stephen23
2021 年 8 月 12 日
No need for CELLFUN when STRCAT can handle that cell array by itself:
A = {'0.2','1.2.3'};
B = strcat('SELECT sum(abc .time_taken) from abc.que_toc_no = ''',A(:),''' ORDER BY abc')
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Cell Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!