need to convert a cell into a vector number
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Pas182
am 29 Apr. 2022
Kommentiert: Pas182
am 29 Apr. 2022
Hello everyone,
I need to convert a 1*1 cell into a vector array, below an example:
from this :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/983155/image.png)
to this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/983160/image.png)
Which is the easiest way to do it?
Thank you so much in advcance! :)
3 Kommentare
Akzeptierte Antwort
Stephen23
am 29 Apr. 2022
C = {'80,47,109,44,104,40'} % why is this in a scalar cell array?
V = sscanf(C{:},'%f,',[1,Inf])
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Type Conversion 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!