need to convert a cell into a vector number
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Stephen23
il 29 Apr 2022
C = {'80,47,109,44,104,40'} % why is this in a scalar cell array?
V = sscanf(C{:},'%f,',[1,Inf])
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Data Type Conversion in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!