Clean up imported table
Afficher commentaires plus anciens
How do i clean up the data set such that Matlab knows this is numberical values. I want to remove the qotation marks, and change from comme to dot, such that this can be treated as a "math matrix".
head(data);
The data set looks as follows:
ans =
8×7 table
ISIN mdate RET RET11 ME beta ivol
________________ __________ ___________ ___________ ________ __________ __________
{'DE0001262012'} 2.0020e+05 {'0,3088' } {'-0,55' } {'10,8'} {'0,4582'} {'0,087' }
{'DE0001262012'} 2.0021e+05 {'-0,3333'} {'-0,7135'} {'7,2' } {'0,62' } {'0,0558'}
{'DE0001262012'} 2.0021e+05 {'-0,375' } {'-0,7895'} {'4,5' } {'0,6142'} {'0,0405'}
{'DE0001262012'} 2.0021e+05 {'-0,0837'} {'-0,8036'} {'4,12'} {'0,4678'} {'0,0439'}
{'DE0001262012'} 2.0021e+05 {'-0,2183'} {'-0,8657'} {'3,22'} {'0,9192'} {'0,0517'}
{'DE0001262012'} 2.0021e+05 {'0,2339' } {'-0,864' } {'3,97'} {'1,5634'} {'0,0642'}
{'DE0001262012'} 2.0021e+05 {'-0,3593'} {'-0,9029'} {'2,55'} {'1,3786'} {'0,0484'}
{'DE0001262012'} 2.0021e+05 {'0,1766' } {'-0,892' } {'3' } {'1,2236'} {'0,0965'}
2 commentaires
Cris LaPierre
le 11 Fév 2021
The easiest way is usually to set up the correct options before you import the data using something like detectImportOptions. Can you share your data file? You can attach it to your post using the paperclip icon.
Andreas Bull
le 11 Fév 2021
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Text Data Preparation dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!