Cell Array to output like this?
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Divyesh pandav
am 11 Aug. 2021
Bearbeitet: Divyesh pandav
am 12 Aug. 2021
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 Kommentare
Rik
am 11 Aug. 2021
What is flagging your own question going to achieve? You can post comments and even edit your question to clarify it.
Akzeptierte Antwort
the cyclist
am 11 Aug. 2021
Here is one way:
A = {'0.2','1'}
output = cellfun(@str2num,A)
8 Kommentare
Stephen23
am 12 Aug. 2021
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')
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Cell 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!