Clean up imported table
이전 댓글 표시
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
Cris LaPierre
2021년 2월 11일
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
2021년 2월 11일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Text Data Preparation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!