Converting .CSV file element to double

50 Ansichten (letzte 30 Tage)
Andrea Carroll
Andrea Carroll am 19 Jan. 2020
Beantwortet: Athul Prakash am 27 Jan. 2020
I have imported a .csv file from excel into MATLAB all fine. However I can not manage to convert the elements into any numerical type as i need to do so for analysis. Any advice?
  2 Kommentare
BN
BN am 19 Jan. 2020
Bearbeitet: BN am 19 Jan. 2020
Dear Andrea,
May I see what is your code for importing your .csv file to the Matlab?
I suggest you to import your csv file using readtable:
T = readtable ('yourcsvfile.csv')
I think this will fix the problem?
dpb
dpb am 19 Jan. 2020
If magic doesn't happen via readtable, attach the file; we have no idea what kind of input you're trying to convert to what...for starters, is it really a .csv file on the disk or are you trying to read an Excel file directly? Not totally clear...

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Athul Prakash
Athul Prakash am 27 Jan. 2020
You may try setting options for the readtable function as outlined in this doc:

Weitere Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by