how to combine contents from multiple cells into one cell or datevector?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have just downloaded some data as a .csv and the date came in format: 12,10,1,12,30 (yy,mm,dd,hh,mn) for each column in the row and the data followed in the subsequent columns of each row. I am trying to combine the contents of the five columns into one column or add the columns using datevec so that I can get a datenumber. Anyone know how I would approach this?
0 Commenti
Risposta accettata
Azzi Abdelmalek
il 7 Giu 2013
x={12,10,1,12,30;13,5,24,13,30}
x=cell2mat(x)
x=[x zeros(size(x,1),1)]
y=datenum(x)
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Downloads in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!