need to convert a cell into a vector number
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello everyone,
I need to convert a 1*1 cell into a vector array, below an example:
from this :
to this:
Which is the easiest way to do it?
Thank you so much in advcance! :)
3 commentaires
Réponse acceptée
Stephen23
le 29 Avr 2022
C = {'80,47,109,44,104,40'} % why is this in a scalar cell array?
V = sscanf(C{:},'%f,',[1,Inf])
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Data Type Conversion dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!