need to convert a cell into a vector number
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Pas182
el 29 de Abr. de 2022
Comentada: Pas182
el 29 de Abr. de 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 comentarios
Respuesta aceptada
Stephen23
el 29 de Abr. de 2022
C = {'80,47,109,44,104,40'} % why is this in a scalar cell array?
V = sscanf(C{:},'%f,',[1,Inf])
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Type Conversion en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!